diff options
author | Thiago Pradi <tchandy@gmail.com> | 2010-07-20 14:59:10 -0300 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2010-07-21 14:55:26 +0200 |
commit | c96a50539121c4a722f354220c7f0e314b24804d (patch) | |
tree | 8c09579f118ea78cb7df6bf63c5391e9905741c3 /activerecord/lib/active_record | |
parent | f3e42292a5792f77681a3fbf03bc8cfc75aeb887 (diff) | |
download | rails-c96a50539121c4a722f354220c7f0e314b24804d.tar.gz rails-c96a50539121c4a722f354220c7f0e314b24804d.tar.bz2 rails-c96a50539121c4a722f354220c7f0e314b24804d.zip |
rake db:seed should check if the database have pending migrations [#5163 state:resolved]
Signed-off-by: José Valim <jose.valim@gmail.com>
Diffstat (limited to 'activerecord/lib/active_record')
-rw-r--r-- | activerecord/lib/active_record/railties/databases.rake | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/railties/databases.rake b/activerecord/lib/active_record/railties/databases.rake index 5024787c3c..2c17c74ab4 100644 --- a/activerecord/lib/active_record/railties/databases.rake +++ b/activerecord/lib/active_record/railties/databases.rake @@ -274,7 +274,7 @@ namespace :db do task :setup => [ 'db:create', 'db:schema:load', 'db:seed' ] desc 'Load the seed data from db/seeds.rb' - task :seed => :environment do + task :seed => 'db:abort_if_pending_migrations' do seed_file = File.join(Rails.root, 'db', 'seeds.rb') load(seed_file) if File.exist?(seed_file) end |