Skip to content

Commit

Permalink
Only load seed data in development
Browse files Browse the repository at this point in the history
The CI build calls `db:setup` which was attempting to load a
seeds/test.db file. We don't need to do this in CI, so I've added a
guard.
  • Loading branch information
chrislo committed Jan 15, 2024
1 parent 4ab3ce8 commit 57d0375
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion db/seeds.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# frozen_string_literal: true

load(Rails.root.join('db', 'seeds', "#{Rails.env.downcase}.rb"))
load(Rails.root.join('db/seeds/development.rb')) if Rails.env.development?

0 comments on commit 57d0375

Please sign in to comment.