From 57d0375d029e4b948598116c9bb45f88b29264da Mon Sep 17 00:00:00 2001 From: Chris Lowis Date: Mon, 15 Jan 2024 21:19:13 +0000 Subject: [PATCH] Only load seed data in development 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. --- db/seeds.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/db/seeds.rb b/db/seeds.rb index e804b621..8ba6c633 100644 --- a/db/seeds.rb +++ b/db/seeds.rb @@ -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?