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:
parent
65362af7a8
commit
7d3e846bf9
1 changed files with 7 additions and 7 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in a new issue