提交 e04818d1 编写于 作者: J Jeremy Kemper

Revert "Make sure :environment task is executed before db:schema:load or db:structure:load

Breaks db:setup because it tries to load the environment before creating the database.

This reverts commit 5ca11fef.
上级 6cbec586
......@@ -245,7 +245,7 @@ db_namespace = namespace :db do
end
end
task :load_if_ruby => [:environment, 'db:create'] do
task :load_if_ruby => 'db:create' do
db_namespace["schema:load"].invoke if ActiveRecord::Base.schema_format == :ruby
end
......@@ -328,7 +328,7 @@ db_namespace = namespace :db do
end
end
task :load_if_sql => [:environment, 'db:create'] do
task :load_if_sql => 'db:create' do
db_namespace["structure:load"].invoke if ActiveRecord::Base.schema_format == :sql
end
end
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册