diff --git a/Gemfile.lock b/Gemfile.lock index 71f38b709..b8dc329d2 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -138,10 +138,10 @@ GEM drb (2.2.0) ruby2_keywords erubi (1.12.0) - factory_bot (6.2.0) + factory_bot (6.4.2) activesupport (>= 5.0.0) - factory_bot_rails (6.2.0) - factory_bot (~> 6.2.0) + factory_bot_rails (6.4.2) + factory_bot (~> 6.4) railties (>= 5.0.0) faraday (2.7.10) faraday-net_http (>= 2.0, < 3.1) diff --git a/config/application.rb b/config/application.rb index 613a35ee9..a01c8743d 100644 --- a/config/application.rb +++ b/config/application.rb @@ -41,5 +41,9 @@ 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