mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Fix tiny problem: change method order for consistency and fix wrong method name.
This commit is contained in:
parent
17c4158390
commit
0074d7d28b
2 changed files with 2 additions and 2 deletions
|
@ -286,8 +286,8 @@ db_namespace = namespace :db do
|
|||
|
||||
# desc "Recreate the databases from the structure.sql file"
|
||||
task :load => [:environment, :load_config] do
|
||||
current_config = ActiveRecord::Tasks::DatabaseTasks.current_config
|
||||
filename = ENV['DB_STRUCTURE'] || File.join(Rails.root, "db", "structure.sql")
|
||||
current_config = ActiveRecord::Tasks::DatabaseTasks.current_config
|
||||
ActiveRecord::Tasks::DatabaseTasks.structure_load(current_config, filename)
|
||||
end
|
||||
|
||||
|
|
|
@ -225,7 +225,7 @@ module ActiveRecord
|
|||
Kernel.stubs(:system)
|
||||
end
|
||||
|
||||
def test_structure_dump
|
||||
def test_structure_load
|
||||
filename = "awesome-file.sql"
|
||||
Kernel.expects(:system).with("psql -f #{filename} my-app-db")
|
||||
|
||||
|
|
Loading…
Reference in a new issue