```ruby
require 'active_record/fixtures'

puts "adding seed data from fixtures..."

Dir.glob(File.join(Rails.root, "db", "fixtures", "*.csv")).each do |file|
  puts "Adding data from: " + File.basename(file)
  Fixtures.create_fixtures('db/fixtures', File.basename(file, '.*'))
end
```

Fix fixtures reference and rake db:nuke_pave
user
```ruby
require 'active_record/fixtures'
require 'fileutils'

puts "adding seed data from fixtures..."

Dir.glob(File.join(Rails.root, "db", "fixtures", "*.csv")).each do |file|
  puts "Adding data from: " + File.basename(file)
  fixture_filename = File.join('db', 'fixtures', File.basename(file, '.*'))

  # Throws exception if 'db/fixtures/#{filename}.yml' doesn't yet exist
  FileUtils.touch(fixture_filename)
  ActiveRecord::Fixtures.create_fixtures(fixture_filename)
end
```
assistant