Skip to content

Commit

Permalink
Fix db:all:schema:load
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthew Beale committed Jul 29, 2009
1 parent b8b38e8 commit 78ceb47
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/tasks/databases.rake
Expand Up @@ -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
Expand Down

0 comments on commit 78ceb47

Please sign in to comment.