Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Browse files

Fixed that db:reset would use migrations instead of loading db/schema…

….rb [DHH]

git-svn-id: 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information...
commit 2e12afaefeb0fe3907dd0a8578a620835a1ea452 1 parent 9d56d12
@dhh dhh authored
Showing with 4 additions and 2 deletions.
  1. +2 −0  railties/CHANGELOG
  2. +2 −2 railties/lib/tasks/databases.rake
2  railties/CHANGELOG
@@ -1,5 +1,7 @@
+* Fixed that db:reset would use migrations instead of loading db/schema.rb [DHH]
* Ensure the plugin loader only loads plugins once. Closes #10102 [haruki_zaemon]
* Refactor Plugin Loader. Add plugin lib paths early, and add lots of tests. Closes #9795 [lazyatom]
4 railties/lib/tasks/databases.rake
@@ -93,8 +93,8 @@ namespace :db do
ActiveRecord::Migrator.migrate('db/migrate/', version)
- 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 'Drops and recreates the database from db/schema.rb for the current environment.'
+ task :reset => ['db:drop', 'db:create', 'db:schema:load']
desc "Retrieves the charset for the current environment's database"
task :charset => :environment do

0 comments on commit 2e12afa

Please sign in to comment.
Something went wrong with that request. Please try again.