Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- require 'rubygems'
- if defined? JRUBY_VERSION
- gem 'activerecord-jdbc-adapter'
- require 'jdbc_adapter'
- adapter = 'jdbcmysql'
- else
- adapter = 'mysql'
- end
- require 'active_record'
- ActiveRecord::Base.establish_connection(
- :adapter => adapter,
- :database => 'study_dev',
- :host => 'fedora',
- :username => 'XXX',
- :password => 'SEKRAT'
- )
Add Comment
Please, Sign In to add comment