factory_bot breaking changes
factory_bot 6.0.0 (June 19, 2020) is its newest release with breaking changes, 4 of them. The first: factory_bot 6.0.0 drops support for Ruby 2.3 and 2.4. Every breaking API change we have recorded in factory_bot on RubyGems: 11 breaking changes in 2 versions. Below, its 2 versions with breaking changes, newest first, removals and renames first, each with its source.
Updated December 4, 2026
On this page
Latest version 6.7.0, released November 26, 2026. Source repository
Its 6.0.0 release drops Ruby 2.3 and 2.4. Ruby end of life dates.
factory_bot 6.0.0 breaking changes
- Removed
Ruby 2.3 and 2.4 and Rails 4.2 are no longer supported, so upgrade those runtimes before using this version. github.com - Removed
Factories without an associated class are no longer supported; use traits instead. github.com - Removed
FactoryBot
Deprecated methods on the FactoryBot module meant only for internal use were removed; code calling them must stop doing so. github.com - Behavior changed
Traits are now generated for Active Record enum attributes automatically, which can add traits that clash with existing names. github.com
factory_bot 5.0.0 breaking changes
- Removed
Static attributes are no longer supported. Use dynamic attributes with a block instead. github.com - Removed
End-of-life versions of Ruby and Rails are no longer supported. github.com - Removed
Factories can no longer be looked up by class. github.com - Removed
duplicate_attribute_assignment_from_initialize_with
This configuration option no longer exists and must be removed from configuration. github.com - Removed
ignore
The ignore method is gone. Use transient instead. github.com - Behavior changed
Associations defined with a block now raise an error. Remove the block from association definitions. github.com - Default changed
use_parent_strategy
The build strategy now builds associations rather than creating them by default. Code that relied on associations being created must set use_parent_strategy to false or create them explicitly. github.com
Related packages
Check your code
These are the changes. To see which of them reach your code, scan a public repository, or have your coding agent call check_code with your manifest or lockfile over MCP. The API reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

Put your code on continuous maintenance.
Scan a public repository now, or give your agent one line.
See how out of date your code is.
Tell your agent what changed since it was trained.
claude mcp add --transport http since https://api.since.dev/mcpCodex, Cursor and any MCP client use https://api.since.dev/mcp.