
Untitled
By: a guest on
Aug 10th, 2012 | syntax:
None | size: 0.53 KB | hits: 6 | expires: Never
ActiveRecord with Derby How to Set Derby Schema
1. rvm install jruby (installed 1.6.7.2)
2. rvm use jruby
3. gem install rails
4. rails new myapp
5. add "gem 'activerecord-jdbcderby-adapter'" to Gemfile of new rails app
6. bundle
7. copied my derby db folder (named 'perm') under db in the rails app
8. changed database.yml as follows:
development:
adapter: jdbcderby
database: db/perm
ActiveRecord::Base.connection.tables
development:
adapter: jdbcderby
database: db/perm
schema: app (also tried APP)