diff --git a/config/application.rb b/config/application.rb index a01c8743d..613a35ee9 100644 --- a/config/application.rb +++ b/config/application.rb @@ -41,9 +41,5 @@ class Application < Rails::Application # Support for inversing belongs_to -> has_many Active Record associations. config.active_record.has_many_inversing = false - - # See https://github.com/thoughtbot/factory_bot_rails#active-record-configuration - # Required because we define a sequence on Dimensions::Date#date, which is a primary key - config.factory_bot.reject_primary_key_attributes = false end end diff --git a/config/environments/test.rb b/config/environments/test.rb index 922776904..6df3f0d28 100644 --- a/config/environments/test.rb +++ b/config/environments/test.rb @@ -53,4 +53,8 @@ # Raise error when a before_action's only/except options reference missing actions config.action_controller.raise_on_missing_callback_actions = true + + # See https://github.com/thoughtbot/factory_bot_rails#active-record-configuration + # Required because we define a sequence on Dimensions::Date#date, which is a primary key + config.factory_bot.reject_primary_key_attributes = false end