From 29b4effff87d16654c86c2db45ec78ea47596ebd Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Fri, 24 Nov 2023 19:34:16 +0000 Subject: [PATCH 1/2] Bump factory_bot_rails from 6.2.0 to 6.4.2 Bumps [factory_bot_rails](https://github.com/thoughtbot/factory_bot_rails) from 6.2.0 to 6.4.2. - [Release notes](https://github.com/thoughtbot/factory_bot_rails/releases) - [Changelog](https://github.com/thoughtbot/factory_bot_rails/blob/main/NEWS.md) - [Commits](https://github.com/thoughtbot/factory_bot_rails/compare/v6.2.0...v6.4.2) --- updated-dependencies: - dependency-name: factory_bot_rails dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- Gemfile.lock | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Gemfile.lock b/Gemfile.lock index d77cb1c9c..201223858 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) From d3bf1b0216d2208dc661941a0cc4b3d714d69380 Mon Sep 17 00:00:00 2001 From: James Robinson Date: Tue, 28 Nov 2023 15:40:04 +0000 Subject: [PATCH 2/2] Make factory_bot_rails allow sequences on PKs Starting with version 6.3.0, factory_bot_rails rejects sequence definitions for Active Record primary keys unless this config option is set. --- config/application.rb | 4 ++++ 1 file changed, 4 insertions(+) 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