Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ## fucken_migration.rb
- module ActiveRecord
- class Migration
- class << self
- def migrate_with_multiple_db
- [:bull, :shit].each do |db|
- ActiveRecord::Base.disconnect!
- ActiveRecord::Base.establish_connection(:adapter => "mysql", :host => "localhost", :username => "myuser", :password => "mypass", :database => "somedatabase")
- migrate_without_multiple_db
- end
- alias_method_chain :migratem, :multiple_db
- end
- end
- end
Add Comment
Please, Sign In to add comment