Skip to content

Commit

Permalink
Move to db/seeds since it's not spec-related
Browse files Browse the repository at this point in the history
  • Loading branch information
smudge committed Nov 13, 2024
1 parent 183c79a commit 6b18a0d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
/.powenv
/.env.local
/db/seed_apps.yml
/spec/fixtures
/db/seeds/*.yml

/app/assets/builds/*
!/app/assets/builds/.keep
Expand Down
4 changes: 2 additions & 2 deletions db/seeds.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
end

require 'active_record/fixtures'
fixtures_dir = File.join(Rails.root, 'spec/fixtures')
fixture_files = Dir.glob('spec/fixtures/*.yml').map { |f| File.basename(f, '.yml') }
fixtures_dir = File.join(Rails.root, 'db/seeds')
fixture_files = Dir.glob('db/seeds/*.yml').map { |f| File.basename(f, '.yml') }

ActiveRecord::FixtureSet.create_fixtures(fixtures_dir, fixture_files)
end
Expand Down

0 comments on commit 6b18a0d

Please sign in to comment.