diff options
author | Tobias Bielohlawek <tobias.bielohlawek@hitfoxgroup.com> | 2015-10-07 11:45:31 +0200 |
---|---|---|
committer | Tobias Bielohlawek <tobias.bielohlawek@solarisbank.de> | 2018-07-10 09:42:03 +0200 |
commit | 3ae999faf386361545e56eae5406ffd2820dcb2e (patch) | |
tree | 426e84fc7587ee67db0716213b26f9003a85348c | |
parent | a4f16d9328933dff415ad4e51ca84d6de9bbb9ca (diff) | |
download | rails-3ae999faf386361545e56eae5406ffd2820dcb2e.tar.gz rails-3ae999faf386361545e56eae5406ffd2820dcb2e.tar.bz2 rails-3ae999faf386361545e56eae5406ffd2820dcb2e.zip |
Add missing load config dependency to `rake db:seed`
-rw-r--r-- | activerecord/CHANGELOG.md | 5 | ||||
-rw-r--r-- | activerecord/lib/active_record/railties/databases.rake | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/activerecord/CHANGELOG.md b/activerecord/CHANGELOG.md index b0027cd2fb..d1ae41ab97 100644 --- a/activerecord/CHANGELOG.md +++ b/activerecord/CHANGELOG.md @@ -1,3 +1,8 @@ +* Add environment & load_config dependency to `bin/rake db:seed` to enable + seed load in environments without Rails and custom DB configuration + + *Tobias Bielohlawek* + * Fix default value for mysql time types with specified precision. *Nikolay Kondratyev* diff --git a/activerecord/lib/active_record/railties/databases.rake b/activerecord/lib/active_record/railties/databases.rake index 24449e8df3..8b7d18fb3d 100644 --- a/activerecord/lib/active_record/railties/databases.rake +++ b/activerecord/lib/active_record/railties/databases.rake @@ -217,7 +217,7 @@ db_namespace = namespace :db do task setup: ["db:schema:load_if_ruby", "db:structure:load_if_sql", :seed] desc "Loads the seed data from db/seeds.rb" - task :seed do + task seed: :load_config do db_namespace["abort_if_pending_migrations"].invoke ActiveRecord::Tasks::DatabaseTasks.load_seed end |