Skip to content

Warn about ActiveRecord value column migration#1013

Merged
jnunemaker merged 1 commit into
mainfrom
active-record-warning-guard
Jul 8, 2026
Merged

Warn about ActiveRecord value column migration#1013
jnunemaker merged 1 commit into
mainfrom
active-record-warning-guard

Conversation

@jnunemaker

Copy link
Copy Markdown
Collaborator

The ActiveRecord adapter now emits the migration warning when flipper_gates.value is still a string column, instead of suppressing it on the first connection check.
The guard still marks the warning as handled before checking the column type, so nested connection checks cannot recurse and later reads do not warn repeatedly.
Regression coverage simulates the legacy string column and verifies repeated reads produce exactly one warning.

Validation: bundle exec rspec spec/flipper/adapters/active_record_spec.rb (159 examples, 0 failures, 2 pending).


Compound Engineering
Codex

@jnunemaker jnunemaker merged commit 7b7ba43 into main Jul 8, 2026
46 checks passed
@jnunemaker jnunemaker deleted the active-record-warning-guard branch July 8, 2026 20:16
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.

1 participant