diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2007-06-23 17:36:52 +0000 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2007-06-23 17:36:52 +0000 |
commit | 376f1210757e53a0d77f5fce782c6c5ef9dc49d4 (patch) | |
tree | e15c62cbca4f10688a9413f2c3fdd834da9064ef /railties/lib | |
parent | 8d8219ccffda31cc157769d3a8650044a3f15624 (diff) | |
download | rails-376f1210757e53a0d77f5fce782c6c5ef9dc49d4.tar.gz rails-376f1210757e53a0d77f5fce782c6c5ef9dc49d4.tar.bz2 rails-376f1210757e53a0d77f5fce782c6c5ef9dc49d4.zip |
Docfix (closes #8480)
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7104 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'railties/lib')
-rw-r--r-- | railties/lib/tasks/databases.rake | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/railties/lib/tasks/databases.rake b/railties/lib/tasks/databases.rake index cad6d35077..fcde596ab3 100644 --- a/railties/lib/tasks/databases.rake +++ b/railties/lib/tasks/databases.rake @@ -1,6 +1,6 @@ namespace :db do - desc 'Creates the databases defined in your config/database.yml (unless they already exist)' + desc 'Creates the databases defined in config/database.yml (unless they already exist)' task :create => :environment do ActiveRecord::Base.configurations.each_value do |config| begin @@ -31,7 +31,7 @@ namespace :db do ActiveRecord::Base.establish_connection(ActiveRecord::Base.configurations[RAILS_ENV || 'development']) end - desc 'Drops the database for your currenet RAILS_ENV as defined in config/database.yml' + desc 'Drops the database for the current environment' task :drop => :environment do config = ActiveRecord::Base.configurations[RAILS_ENV || 'development'] case config['adapter'] @@ -50,10 +50,10 @@ namespace :db do Rake::Task["db:schema:dump"].invoke if ActiveRecord::Base.schema_format == :ruby end - desc 'Drops, creates and then migrates the database for your current RAILS_ENV. Target specific version with VERSION=x' + desc 'Drops, creates and then migrates the database for the current environment. Target specific version with VERSION=x' task :reset => ['db:drop', 'db:create', 'db:migrate'] - desc "retrieve the charset for your database defined in your current RAILS_ENV" + desc "Retrieves the charset for the current environment's database" task :charset => :environment do config = ActiveRecord::Base.configurations[RAILS_ENV || 'development'] case config['adapter'] @@ -65,7 +65,7 @@ namespace :db do end end - desc "retrieve the collation for your database" + desc "Retrieves the collation for the current environment's database" task :collation => :environment do config = ActiveRecord::Base.configurations[RAILS_ENV || 'development'] case config['adapter'] |