aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEileen M. Uchitelle <eileencodes@users.noreply.github.com>2019-07-19 08:43:36 -0400
committerGitHub <noreply@github.com>2019-07-19 08:43:36 -0400
commit2e8c78e164d14bd5590f0ba2eabb2b9cd9780de2 (patch)
tree4b089a854697b69793df6703447e624c237abcce
parentd3b951f326c4facd693d5e3f92cc40ccdbf6dc1b (diff)
parent773248b3f8aca41039bbb8f6a19191305abdc6e5 (diff)
downloadrails-2e8c78e164d14bd5590f0ba2eabb2b9cd9780de2.tar.gz
rails-2e8c78e164d14bd5590f0ba2eabb2b9cd9780de2.tar.bz2
rails-2e8c78e164d14bd5590f0ba2eabb2b9cd9780de2.zip
Merge pull request #36712 from tekin/include-more-commands-in-rails-help-output
Include common commands in rails help output
-rw-r--r--activerecord/lib/active_record/railties/databases.rake8
1 files changed, 4 insertions, 4 deletions
diff --git a/activerecord/lib/active_record/railties/databases.rake b/activerecord/lib/active_record/railties/databases.rake
index 648fdd0dc4..98f57549a5 100644
--- a/activerecord/lib/active_record/railties/databases.rake
+++ b/activerecord/lib/active_record/railties/databases.rake
@@ -112,7 +112,7 @@ db_namespace = namespace :db do
end
end
- # desc 'Rollbacks the database one migration and re migrate up (options: STEP=x, VERSION=x).'
+ desc "Rolls back the database one migration and re-migrates up (options: STEP=x, VERSION=x)."
task redo: :load_config do
raise "Empty VERSION provided" if ENV["VERSION"] && ENV["VERSION"].empty?
@@ -128,7 +128,7 @@ db_namespace = namespace :db do
# desc 'Resets your database using your migrations for the current environment'
task reset: ["db:drop", "db:create", "db:migrate"]
- # desc 'Runs the "up" for a given migration VERSION.'
+ desc 'Runs the "up" for a given migration VERSION.'
task up: :load_config do
ActiveRecord::Tasks::DatabaseTasks.raise_for_multi_db(command: "db:migrate:up")
@@ -162,7 +162,7 @@ db_namespace = namespace :db do
end
end
- # desc 'Runs the "down" for a given migration VERSION.'
+ desc 'Runs the "down" for a given migration VERSION.'
task down: :load_config do
ActiveRecord::Tasks::DatabaseTasks.raise_for_multi_db(command: "db:migrate:down")
@@ -230,7 +230,7 @@ db_namespace = namespace :db do
db_namespace["_dump"].invoke
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: [ "db:drop", "db:setup" ]
# desc "Retrieves the charset for the current environment's database"