Browse Source

removing puts, and fixing File.join

denney-disable-on-select
Jason Denney 12 years ago
parent
commit
609870c264
  1. 5
      db/seeds.rb

5
db/seeds.rb

@ -7,9 +7,8 @@
# Mayor.create(name: 'Emanuel', city: cities.first) # Mayor.create(name: 'Emanuel', city: cities.first)
require 'active_record/fixtures' require 'active_record/fixtures'
Dir.glob(File.join(Rails.root, 'test', 'fixtures', '**/*.{yml,csv}')).each do |fixture_file, something| #Load defaults from db/seed/fixtures
puts fixture_file Dir.glob(File.join(Rails.root, 'db', 'seed', 'fixtures', '**', '*.{yml,csv}')).each do |fixture_file, something|
puts File.dirname(fixture_file)
ActiveRecord::Fixtures.create_fixtures(File.dirname(fixture_file), File.basename(fixture_file, '.*')) ActiveRecord::Fixtures.create_fixtures(File.dirname(fixture_file), File.basename(fixture_file, '.*'))
end end

Loading…
Cancel
Save