diff options
author | Yves Senn <yves.senn@gmail.com> | 2014-01-08 05:39:35 -0800 |
---|---|---|
committer | Yves Senn <yves.senn@gmail.com> | 2014-01-08 05:39:35 -0800 |
commit | b502e3db958fdfd27453db52f6f455183a449831 (patch) | |
tree | 45e2b00b6b57f54ae268d6eaf76de04ca3110a38 /activerecord/lib/active_record/railties | |
parent | a03fed88f780922e3a3ab7b22af945f29a711ae4 (diff) | |
parent | a334425caff9b2140d5e99fcfc2eb8c4ab10bdfa (diff) | |
download | rails-b502e3db958fdfd27453db52f6f455183a449831.tar.gz rails-b502e3db958fdfd27453db52f6f455183a449831.tar.bz2 rails-b502e3db958fdfd27453db52f6f455183a449831.zip |
Merge pull request #13629 from dmathieu/drop_test
Be more explicit about the default of db:drop and db:create
Diffstat (limited to 'activerecord/lib/active_record/railties')
-rw-r--r-- | activerecord/lib/active_record/railties/databases.rake | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/activerecord/lib/active_record/railties/databases.rake b/activerecord/lib/active_record/railties/databases.rake index 3d795ca689..58dfa2c5a5 100644 --- a/activerecord/lib/active_record/railties/databases.rake +++ b/activerecord/lib/active_record/railties/databases.rake @@ -12,7 +12,7 @@ db_namespace = namespace :db do end end - desc 'Create the database from DATABASE_URL or config/database.yml for the current Rails.env (use db:create:all to create all databases in the config)' + desc 'Creates the database from DATABASE_URL or config/database.yml for the current RAILS_ENV (use db:create:all to create all databases in the config). Without RAILS_ENV it defaults to creating the development and test databases.' task :create => [:load_config] do ActiveRecord::Tasks::DatabaseTasks.create_current end @@ -23,7 +23,7 @@ db_namespace = namespace :db do end end - desc 'Drops the database using DATABASE_URL or the current Rails.env (use db:drop:all to drop all databases)' + desc 'Drops the database from DATABASE_URL or config/database.yml for the current RAILS_ENV (use db:drop:all to drop all databases in the config). Without RAILS_ENV it defaults to dropping the development and test databases.' task :drop => [:load_config] do ActiveRecord::Tasks::DatabaseTasks.drop_current end |