Skip to content
Browse files

Fix db:all:schema:load

  • Loading branch information...
1 parent b8b38e8 commit 78ceb472d09d3bb677779c2678411b381c17117c Matthew Beale committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/tasks/databases.rake
View
2 lib/tasks/databases.rake
@@ -63,7 +63,7 @@ namespace :db do
task :load => ShardTheLove::RAKE_ENV_SETUP do
ActiveRecord::Base.configurations = HashWithIndifferentAccess.new(ActiveRecord::Base.configurations)
ENV['CURRENT_CONNECTION_NAME'] = ShardTheLove::ENV+'_directory' # must let migration code know where to search for migrations
- ActiveRecord::Base.establish_connection(ENV['ACTIVE_SHARD_CONFIG'])
+ ActiveRecord::Base.establish_connection(ActiveRecord::Base.configurations[ENV['CURRENT_CONNECTION_NAME']])
file = ENV['SCHEMA'] || ShardTheLove::DB_PATH+"directory_schema.rb"
load(file)
end

0 comments on commit 78ceb47

Please sign in to comment.
Something went wrong with that request. Please try again.