---
title: "factory_bot 6.0.0 Breaking Changes on RubyGems | Since.dev"
description: "What each factory_bot release removed, renamed or changed: 11 breaking changes in 2 versions on RubyGems, each with its source."
canonical_url: https://since.dev/packages/gem/factory_bot
last_updated: 2026-12-04
---

# 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

Latest version `6.7.0`, released November 26, 2026. [Source repository](https://github.com/thoughtbot/factory%5Fbot)

Its 6.0.0 release drops Ruby 2.3 and 2.4. [Ruby end of life dates](https://since.dev/calendar/ruby.md).

- From [5.0.0](#v-5-0-0) to [6.0.0](#v-6-0-0): 4 breaking changes in 1 version.

## factory_bot 6.0.0 breaking changes

factory_bot 6.0.0, released June 19, 2020: 4 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](https://github.com/thoughtbot/factory%5Fbot/releases/tag/v6.0.0)
- **Removed**  

Factories without an associated class are no longer supported; use traits instead. [github.com](https://github.com/thoughtbot/factory%5Fbot/releases/tag/v6.0.0)
- **Removed** `FactoryBot`  

Deprecated methods on the FactoryBot module meant only for internal use were removed; code calling them must stop doing so. [github.com](https://github.com/thoughtbot/factory%5Fbot/releases/tag/v6.0.0)
- **Behavior changed**  

Traits are now generated for Active Record enum attributes automatically, which can add traits that clash with existing names. [github.com](https://github.com/thoughtbot/factory%5Fbot/releases/tag/v6.0.0)

## factory_bot 5.0.0 breaking changes

factory_bot 5.0.0, released February 1, 2019: 7 breaking changes.

- **Removed**  

Static attributes are no longer supported. Use dynamic attributes with a block instead. [github.com](https://github.com/thoughtbot/factory%5Fbot/releases/tag/v5.0.0)
- **Removed**  

End-of-life versions of Ruby and Rails are no longer supported. [github.com](https://github.com/thoughtbot/factory%5Fbot/releases/tag/v5.0.0)
- **Removed**  

Factories can no longer be looked up by class. [github.com](https://github.com/thoughtbot/factory%5Fbot/releases/tag/v5.0.0)
- **Removed** `duplicate_attribute_assignment_from_initialize_with`  

This configuration option no longer exists and must be removed from configuration. [github.com](https://github.com/thoughtbot/factory%5Fbot/releases/tag/v5.0.0)
- **Removed** `ignore`  

The ignore method is gone. Use transient instead. [github.com](https://github.com/thoughtbot/factory%5Fbot/releases/tag/v5.0.0)
- **Behavior changed**  

Associations defined with a block now raise an error. Remove the block from association definitions. [github.com](https://github.com/thoughtbot/factory%5Fbot/releases/tag/v5.0.0)
- **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](https://github.com/thoughtbot/factory%5Fbot/releases/tag/v5.0.0)

## Related packages

- [factory_bot_rails](https://since.dev/packages/gem/factory%5Fbot%5Frails.md)

## Check your code

These are the changes. To see which of them reach your code, [scan a public repository](https://since.dev/scan.md), or have your coding agent call `check_code` with your manifest or lockfile over [MCP](https://since.dev/docs.md#mcp). [The API](https://since.dev/docs.md#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.

[Scan a repository](https://since.dev/scan.md). Any public GitHub repository. No sign-in.

### Tell your agent what changed since it was trained.

`claude mcp add --transport http since https://api.since.dev/mcp`

[Get an API key](https://app.since.dev/login?mode=signup)

Codex, Cursor and any MCP client use https://api.since.dev/mcp.

---

Every page on this site as Markdown: https://since.dev/sitemap.md. For agents: https://since.dev/llms.txt.
