diff options
author | Narihiro Nakamura <authornari@gmail.com> | 2013-02-28 18:00:15 +0900 |
---|---|---|
committer | Narihiro Nakamura <authornari@gmail.com> | 2013-02-28 18:02:25 +0900 |
commit | 3170d2b7689f2e7f63bac4a5dee050ca03005678 (patch) | |
tree | bd42df58810c3939de8c83b9929b0ca101aab015 /activerecord/lib/active_record | |
parent | 641a27d47baf4804e89d5a99ee6d843a75d868e6 (diff) | |
download | rails-3170d2b7689f2e7f63bac4a5dee050ca03005678.tar.gz rails-3170d2b7689f2e7f63bac4a5dee050ca03005678.tar.bz2 rails-3170d2b7689f2e7f63bac4a5dee050ca03005678.zip |
Backported #6755 to 3-2-stable. Don't read csv file during executing db:fixtures:load.
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 8f7c7f6b00..7f1b84b848 100644 --- a/activerecord/lib/active_record/railties/databases.rake +++ b/activerecord/lib/active_record/railties/databases.rake @@ -355,7 +355,7 @@ db_namespace = namespace :db do base_dir = File.join [Rails.root, ENV['FIXTURES_PATH'] || %w{test fixtures}].flatten fixtures_dir = File.join [base_dir, ENV['FIXTURES_DIR']].compact - (ENV['FIXTURES'] ? ENV['FIXTURES'].split(/,/) : Dir["#{fixtures_dir}/**/*.{yml,csv}"].map {|f| f[(fixtures_dir.size + 1)..-5] }).each do |fixture_file| + (ENV['FIXTURES'] ? ENV['FIXTURES'].split(/,/) : Dir["#{fixtures_dir}/**/*.yml"].map {|f| f[(fixtures_dir.size + 1)..-5] }).each do |fixture_file| ActiveRecord::Fixtures.create_fixtures(fixtures_dir, fixture_file) end end |