Merge pull request #20572 from arthurnn/db_reset
Small refactor on db:reset
This commit is contained in:
commit
e60c18931c
@ -134,10 +134,7 @@ db_namespace = namespace :db do
|
|||||||
end
|
end
|
||||||
|
|
||||||
# desc 'Drops and recreates the database from db/schema.rb for the current environment and loads the seeds.'
|
# desc 'Drops and recreates the database from db/schema.rb for the current environment and loads the seeds.'
|
||||||
task :reset => [:environment, :load_config] do
|
task :reset => [ 'db:drop', 'db:setup' ]
|
||||||
db_namespace["drop"].invoke
|
|
||||||
db_namespace["setup"].invoke
|
|
||||||
end
|
|
||||||
|
|
||||||
# desc "Retrieves the charset for the current environment's database"
|
# desc "Retrieves the charset for the current environment's database"
|
||||||
task :charset => [:environment, :load_config] do
|
task :charset => [:environment, :load_config] do
|
||||||
|
Loading…
Reference in New Issue
Block a user