---
title: "state_machines-activerecord 0.304.0 Breaking Changes"
description: "What each state_machines-activerecord release removed, renamed or changed: 10 breaking changes in 6 versions on RubyGems, each with its source."
canonical_url: https://since.dev/packages/gem/state_machines-activerecord
last_updated: 2026-12-04
---

# state_machines-activerecord breaking changes

state_machines-activerecord 0.304.0 (November 17, 2026) is its newest release with breaking changes. The first: Behavior changed around_transition. Every breaking API change we have recorded in state_machines-activerecord on RubyGems: 10 breaking changes in 6 versions. Below, its 6 versions with breaking changes, newest first, removals and renames first, each with its source.

Updated December 4, 2026

Latest version `0.304.0`, released November 17, 2026. [Source repository](https://github.com/state-machines/state%5Fmachines-activerecord)

Packages on RubyGems run on Ruby. [Ruby end of life dates](https://since.dev/calendar/ruby.md).

- From [0.10.0](#v-0-10-0) to [0.304.0](#v-0-304-0): 9 breaking changes in 5 versions.

## state_machines-activerecord 0.304.0 breaking changes

state_machines-activerecord 0.304.0, released November 17, 2026: 1 breaking change.

- **Behavior changed** `around_transition`  

An around_transition now wraps the save itself rather than spanning valid? and the save that follows. Code that relied on the old span must be adjusted, and state_machines 0.304.0 is required. [github.com](https://github.com/state-machines/state%5Fmachines-activerecord/releases/tag/state%5Fmachines-activerecord/v0.304.0)

## state_machines-activerecord 0.302.0 breaking changes

state_machines-activerecord 0.302.0, released November 15, 2026: 1 breaking change.

- **Behavior changed**  

A dynamic initial state now wins over the database column default. Code that relied on the column default being used may behave differently and should be checked. [github.com](https://github.com/state-machines/state%5Fmachines-activerecord/releases/tag/state%5Fmachines-activerecord/v0.302.0)

## state_machines-activerecord 0.301.0 breaking changes

state_machines-activerecord 0.301.0, released November 15, 2026: 1 breaking change.

- **Default changed** `direct_assignment`  

Direct assignment of a state attribute is now allowed by default. Code that relied on it being blocked must set direct_assignment: :deny to keep the old behavior. [github.com](https://github.com/state-machines/state%5Fmachines-activerecord/releases/tag/state%5Fmachines-activerecord/v0.301.0)

## state_machines-activerecord 0.300.0 breaking changes

state_machines-activerecord 0.300.0, released November 15, 2026: 5 breaking changes.

- **Removed**  

Rails 7.2 is no longer supported; apps on Rails 7.2 must upgrade Rails before using this release. [github.com](https://github.com/state-machines/state%5Fmachines-activerecord/releases/tag/state%5Fmachines-activerecord/v0.300.0)
- **Behavior changed**  

State changes are now event-only through the model, so code that sets state directly must switch to firing events. [github.com](https://github.com/state-machines/state%5Fmachines-activerecord/releases/tag/state%5Fmachines-activerecord/v0.300.0)
- **Default changed**  

When no initial state is configured, the database schema default is used as the initial state instead of the previous behavior. [github.com](https://github.com/state-machines/state%5Fmachines-activerecord/releases/tag/state%5Fmachines-activerecord/v0.300.0)
- **Configuration changed**  

Users must upgrade state_machines and state_machines-activemodel to at least 0.300.0. [github.com](https://github.com/state-machines/state%5Fmachines-activerecord/releases/tag/state%5Fmachines-activerecord/v0.300.0)
- **Configuration changed**  

ActiveRecord 8.0 or later is now required, so older ActiveRecord versions no longer work. [github.com](https://github.com/state-machines/state%5Fmachines-activerecord/releases/tag/state%5Fmachines-activerecord/v0.300.0)

## state_machines-activerecord 0.40.0 breaking changes

state_machines-activerecord 0.40.0, released June 30, 2025: 1 breaking change.

- **Removed**  

Rails 7.1 is no longer supported. Upgrade the application to Rails 7.2 or later before updating this gem. [github.com](https://github.com/state-machines/state%5Fmachines-activerecord/releases/tag/state%5Fmachines-activerecord/v0.40.0)

## state_machines-activerecord 0.10.0 breaking changes

state_machines-activerecord 0.10.0, released June 12, 2025: 1 breaking change.

- **Removed**  

The release removes support for a legacy version, but the notes do not name which one. Check your code and dependencies for that version before upgrading. [github.com](https://github.com/state-machines/state%5Fmachines-activerecord/releases/tag/state%5Fmachines-activerecord/v0.10.0)

## Related packages

- [state_machines](https://since.dev/packages/gem/state%5Fmachines.md)
- [state_machines-activemodel](https://since.dev/packages/gem/state%5Fmachines-activemodel.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.
