/plushcap/analysis/cockroach-labs/build-a-rails-app-with-activerecord-and-cockroachdb

Build a Rails App with ActiveRecord and CockroachDB

What's this blog post about?

This text provides a step-by-step guide on how to use CockroachDB with Rails. It explains what CockroachDB is, its benefits and how it differs from PostgreSQL. The author then demonstrates the process of installing CockroachDB, adding the ActiveRecord CockroachDB Adapter, configuring CodeTriage to use this adapter, connecting to the CockroachDB database from CodeTriage, and finally testing the setup by running a rails console and server. The author also highlights some differences in behavior between CockroachDB and PostgreSQL that developers might encounter while using CockroachDB with Rails.

Company
Cockroach Labs

Date published
April 12, 2021

Author(s)
Ali Ibrahim, Test Double

Word count
1775

Hacker News points
None found.

Language
English


By Matt Makai. 2021-2024.