diff options
author | Yves Senn <yves.senn@gmail.com> | 2015-06-16 09:07:49 +0200 |
---|---|---|
committer | Yves Senn <yves.senn@gmail.com> | 2015-06-16 09:07:49 +0200 |
commit | e60c18931c81a88f4eb89059e955d6ff07c5e26c (patch) | |
tree | 36a0695c0f1c19d4979e1ec7368945983664323d /activerecord | |
parent | 50176b59fa3a5110d7b9ebdbc49852e30b130736 (diff) | |
parent | 68f6d5346c4a0a3c6875939752ea116d507f0ba1 (diff) | |
download | rails-e60c18931c81a88f4eb89059e955d6ff07c5e26c.tar.gz rails-e60c18931c81a88f4eb89059e955d6ff07c5e26c.tar.bz2 rails-e60c18931c81a88f4eb89059e955d6ff07c5e26c.zip |
Merge pull request #20572 from arthurnn/db_reset
Small refactor on db:reset
Diffstat (limited to 'activerecord')
-rw-r--r-- | activerecord/lib/active_record/railties/databases.rake | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/activerecord/lib/active_record/railties/databases.rake b/activerecord/lib/active_record/railties/databases.rake index bd8024e143..f2f096962d 100644 --- a/activerecord/lib/active_record/railties/databases.rake +++ b/activerecord/lib/active_record/railties/databases.rake @@ -134,10 +134,7 @@ db_namespace = namespace :db do end # desc 'Drops and recreates the database from db/schema.rb for the current environment and loads the seeds.' - task :reset => [:environment, :load_config] do - db_namespace["drop"].invoke - db_namespace["setup"].invoke - end + task :reset => [ 'db:drop', 'db:setup' ] # desc "Retrieves the charset for the current environment's database" task :charset => [:environment, :load_config] do |