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:
parent
1c4564b620
commit
42954c426b
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue