This repo has a "Hello World" Ruby application that uses the Active Record CockroachDB Adapter and pg libraries to talk to CockroachDB.
Prerequisites:
- Install
libpq
. For example, on OS X using Homebrew:brew install libpq
- Configure
bundle
to uselibpq
.Setbundle config --local build.pg --with-opt-dir="/usr/local/opt/libpq"
--with-opt-dir
to the location oflibpq
for your OS. - Install the bundle:
bundle install
For more instructions on running the code in this repo, see Build a Ruby app with CockroachDB (ActiveRecord).