1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Stop db:seed from performing a reload of the db

Fix regression introduced by 38d26b0cb5
This commit is contained in:
Sam Ruby 2011-11-18 10:05:06 -05:00
parent 1c4564b620
commit 42954c426b

View file

@ -295,10 +295,10 @@ db_namespace = namespace :db do
end
desc 'Create the database, load the schema, and initialize with the seed data (use db:reset to also drop the db first)'
task :setup => :seed
task :setup => ['db:schema:load_if_ruby', 'db:structure:load_if_sql', :seed]
desc 'Load the seed data from db/seeds.rb'
task :seed => ['db:schema:load_if_ruby', 'db:structure:load_if_sql'] do
task :seed do
db_namespace['abort_if_pending_migrations'].invoke
Rails.application.load_seed
end