1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Change an order of methods for readbility.

This commit is contained in:
kennyj 2012-06-26 02:26:27 +09:00
parent 65362af7a8
commit 7d3e846bf9

View file

@ -338,6 +338,13 @@ db_namespace = namespace :db do
end
end
# desc "Recreate the test database from an existent schema.rb file"
task :load_schema => 'db:test:purge' do
ActiveRecord::Base.establish_connection(ActiveRecord::Base.configurations['test'])
ActiveRecord::Schema.verbose = false
db_namespace["schema:load"].invoke
end
# desc "Recreate the test database from an existent structure.sql file"
task :load_structure => 'db:test:purge' do
begin
@ -348,13 +355,6 @@ db_namespace = namespace :db do
end
end
# desc "Recreate the test database from an existent schema.rb file"
task :load_schema => 'db:test:purge' do
ActiveRecord::Base.establish_connection(ActiveRecord::Base.configurations['test'])
ActiveRecord::Schema.verbose = false
db_namespace["schema:load"].invoke
end
# desc "Recreate the test database from a fresh schema.rb file"
task :clone => %w(db:schema:dump db:test:load_schema)