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

# lockbox breaking changes

lockbox 2.0.0 (October 27, 2024) is its newest release with breaking changes, 2 of them. The first: lockbox 2.0.0 requires Active Record 7 or later. Every breaking API change we have recorded in lockbox on RubyGems: 12 breaking changes in 5 versions. Below, its 5 versions with breaking changes, newest first, removals and renames first, each with its source.

Updated December 4, 2026

Latest version `2.3.0`. [Source repository](https://github.com/ankane/lockbox)

Its 1.0.0 release requires Ruby 2.6 or later. [Ruby end of life dates](https://since.dev/calendar/ruby.md).

- From [1.0.0](#v-1-0-0) to [2.0.0](#v-2-0-0): 2 breaking changes in 1 version.
- From [0.3.0](#v-0-3-0) to [2.0.0](#v-2-0-0): 7 breaking changes in 4 versions.

## lockbox 2.0.0 breaking changes

lockbox 2.0.0, released October 27, 2024: 2 breaking changes.

- **Removed**  

Active Record versions older than 7 are no longer supported; upgrade Active Record before using this version. [github.com](https://github.com/ankane/lockbox/blob/v2.0.0/CHANGELOG.md)
- **Removed** `lockbox_encrypts`  

The deprecated lockbox_encrypts method is gone; use has_encrypted instead. [github.com](https://github.com/ankane/lockbox/blob/v2.0.0/CHANGELOG.md)

## lockbox 1.0.0 breaking changes

lockbox 1.0.0, released June 12, 2022: 1 breaking change.

- **Removed**  

Ruby versions older than 2.6 are no longer supported, so upgrade Ruby before using this version. [github.com](https://github.com/ankane/lockbox/blob/v1.0.0/CHANGELOG.md)

## lockbox 0.5.0 breaking changes

lockbox 0.5.0, released November 22, 2020: 1 breaking change.

- **Behavior changed**  

Code that specifies no attributes now raises an error instead of printing a warning, so it must specify attributes to keep working. [github.com](https://github.com/ankane/lockbox/blob/v0.5.0/CHANGELOG.md)

## lockbox 0.4.0 breaking changes

lockbox 0.4.0, released May 4, 2020: 3 breaking changes.

- **Removed** `attached_encrypted`  

The deprecated attached_encrypted method was removed. Code that still calls it will stop working. [github.com](https://github.com/ankane/lockbox/blob/v0.4.0/CHANGELOG.md)
- **Removed** `attr_encrypted`  

The legacy attr_encrypted encryptor was removed. Code that uses it must switch to a supported encryptor. [github.com](https://github.com/ankane/lockbox/blob/v0.4.0/CHANGELOG.md)
- **Behavior changed** `attributes`  

Calling attributes now loads the encrypted attributes as well, so code that relies on the previous result may see different values. [github.com](https://github.com/ankane/lockbox/blob/v0.4.0/CHANGELOG.md)

## lockbox 0.3.0 breaking changes

lockbox 0.3.0, released December 22, 2019: 5 breaking changes.

- **Behavior changed**  

Many Mongoid methods were changed to behave like they do for unencrypted columns. Check Mongoid code that depends on their previous behavior. [github.com](https://github.com/ankane/lockbox/blob/v0.3.0/CHANGELOG.md)
- **Behavior changed** `in_database`  

The in_database method now returns values consistent with unencrypted columns before an update. Check code that relies on its previous return values. [github.com](https://github.com/ankane/lockbox/blob/v0.3.0/CHANGELOG.md)
- **Behavior changed** `restore`  

The restore methods now restore the encrypted ciphertext rather than the previous value. Check code that depends on the restored data. [github.com](https://github.com/ankane/lockbox/blob/v0.3.0/CHANGELOG.md)
- **Behavior changed** `was`  

The was method now returns values consistent with unencrypted columns before an update. Check code that relies on its previous return values. [github.com](https://github.com/ankane/lockbox/blob/v0.3.0/CHANGELOG.md)
- **Signature changed** `Lockbox`  

Lockbox changed from a class to a module, so code that instantiates it or relies on it being a class must be updated. [github.com](https://github.com/ankane/lockbox/blob/v0.3.0/CHANGELOG.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.
