cockroachlabs / example-app-ruby-activerecord

'Hello World' application in Ruby using Active Record

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

hello-world-ruby-activerecord

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 use libpq.
    bundle config --local build.pg --with-opt-dir="/usr/local/opt/libpq"
    Set --with-opt-dir to the location of libpq 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).

About

'Hello World' application in Ruby using Active Record

License:Apache License 2.0


Languages

Language:Ruby 100.0%