Skip to content

Rails 4 fixes - #2

Merged
RDIL merged 6 commits into
masterfrom
reece/2026-r4-updates
Sep 10, 2026
Merged

RDIL merged 6 commits into
masterfrom
reece/2026-r4-updates

Conversation

@RDIL

@RDIL RDIL commented Sep 10, 2026 •

Copy link
Copy Markdown
Member
  • [BREAKING] Drop support for Active Record 3.0, 3.1, 3.2 and 4.0; only Active Record 4.2 (Rails LTS) is supported
  • [FIX] Restore the default number ASC ordering of the versions association, which was lost in the Rails 4 port when has_many dropped its :order option
  • [FIX] Versions#between replaces the association's ordering rather than appending to it
  • [FIX] revert_to skips columns that have since been dropped from the schema, which raised ActiveModel::MissingAttributeError under Rails 4
  • The versions association's conditions and ordering are built with Arel, so identifiers are quoted by whichever adapter is in use
  • The generated migration states :null => false on its timestamps, matching the Rails 5 default (and silencing a Rails 4.2 deprecation warning)
  • The test suite now runs on Ruby 3.3 against PostgreSQL, under RSpec 3

RDIL added 6 commits September 9, 2026 20:40
If you store a version and then drop a column, and then try to revert to that version, Rails will raise an error.

This is a Rails 4 specific bug.

Fixes GEN-7002
@RDIL RDIL self-assigned this Sep 10, 2026
@RDIL
RDIL merged commit f83dafd into master Sep 10, 2026
4 checks passed
@RDIL
RDIL deleted the reece/2026-r4-updates branch September 11, 2026 07:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants