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)
require 'active_record/fixtures'
Dir.glob(File.join(Rails.root, 'test', 'fixtures', '**/*.{yml,csv}')).each do |fixture_file, something|
puts fixture_file
puts File.dirname(fixture_file)
#Load defaults from db/seed/fixtures
Dir.glob(File.join(Rails.root, 'db', 'seed', 'fixtures', '**', '*.{yml,csv}')).each do |fixture_file, something|
ActiveRecord::Fixtures.create_fixtures(File.dirname(fixture_file), File.basename(fixture_file, '.*'))
end

Loading…
Cancel
Save