mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Merge pull request #10565 from prathamesh-sonpatki/rake-db
Improved grammar and replaced 'dbs' slang with 'databases'
This commit is contained in:
commit
9adbbe93a9
2 changed files with 4 additions and 4 deletions
|
@ -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 dbs in the config)'
|
||||
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)'
|
||||
task :create => [:load_config] do
|
||||
if ENV['DATABASE_URL']
|
||||
ActiveRecord::Tasks::DatabaseTasks.create_database_url
|
||||
|
@ -172,7 +172,7 @@ db_namespace = namespace :db do
|
|||
end
|
||||
end
|
||||
|
||||
desc 'Create the database, load the schema, and initialize with the seed data (use db:reset to also drop the db first)'
|
||||
desc 'Create the database, load the schema, and initialize with the seed data (use db:reset to also drop the database first)'
|
||||
task :setup => ['db:schema:load_if_ruby', 'db:structure:load_if_sql', :seed]
|
||||
|
||||
desc 'Load the seed data from db/seeds.rb'
|
||||
|
@ -236,7 +236,7 @@ db_namespace = namespace :db do
|
|||
end
|
||||
|
||||
namespace :schema do
|
||||
desc 'Create a db/schema.rb file that can be portably used against any DB supported by AR'
|
||||
desc 'Create a db/schema.rb file that is portable against any DB supported by AR'
|
||||
task :dump => [:environment, :load_config] do
|
||||
require 'active_record/schema_dumper'
|
||||
filename = ENV['SCHEMA'] || File.join(ActiveRecord::Tasks::DatabaseTasks.db_dir, 'schema.rb')
|
||||
|
|
|
@ -26,7 +26,7 @@ namespace :db do
|
|||
desc "Display status of migrations"
|
||||
app_task "migrate:status"
|
||||
|
||||
desc 'Create the database from config/database.yml for the current Rails.env (use db:create:all to create all dbs in the config)'
|
||||
desc 'Create the database from config/database.yml for the current Rails.env (use db:create:all to create all databases in the config)'
|
||||
app_task "create"
|
||||
app_task "create:all"
|
||||
|
||||
|
|
Loading…
Reference in a new issue