Guest User

Untitled

a guest
Jul 16th, 2018
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. require 'torquebox/tasks'
  2.  
  3. # Patch db:load_config to make sure activerecord-jdbc-adapter gets loaded
  4. namespace :db do
  5. task :load_config => :rails_env do
  6. require 'active_record'
  7. require 'activerecord-jdbc-adapter'
  8. ActiveRecord::Base.configurations = Rails::Application.config.database_configuration
  9. end
  10. end
Add Comment
Please, Sign In to add comment