提交 2e12afae 编写于 作者: D David Heinemeier Hansson

Fixed that db:reset would use migrations instead of loading db/schema.rb [DHH]

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8123 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
上级 9d56d123
*SVN*
* 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]
......
......@@ -93,8 +93,8 @@ namespace :db do
ActiveRecord::Migrator.migrate('db/migrate/', version)
end
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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册