mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
Stop db:seed from performing a reload of the db
Fix regression introduced by 38d26b0cb5
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user