The Ruby ActiveRecord NuoDB Adapter enables the ActiveRecord ORM to work with NuoDB. Together with the Ruby NuoDB driver, this gem allows for NuoDB backed Rails applications.
Note: At this time the Ruby ActiveRecord NuoDB Adapter does not support Windows.
-
If you haven't already, Download and Install NuoDB
-
Add the ActiveRecord NuoDB Adapter to your Gemfile
gem 'activerecord-nuodb-adapter'
-
Use bundler to install
bundle install
-
Use the NuoDB Manager to create your database by starting a Storage Manager (SM) and Transaction Engine (TE)
java -jar /opt/nuodb/jar/nuodbmanager.jar --broker localhost --user domain --password bird > start process sm host localhost database blog_development archive /var/opt/nuodb/production-archives/blog_development initialize yes > start process te host localhost database blog_development options '--dba-user blog --dba-password bl0gPassw0rd'
-
Update your config/database.yml file
development: adapter: nuodb database: blog_development@localhost username: blog password: bl0gPassw0rd schema: blog
See Contribution for information about contributing to the Ruby ActiveRecord NuoDB Adapter.