mirror of
https://github.com/we-promise/sure.git
synced 2026-08-12 11:10:20 +00:00
Add Plaid migration constant alias (#1235)
Restore the original migration constant name as an alias so old references still resolve during production boot and migration loading. Add a regression test covering the legacy alias.
This commit is contained in:
@@ -26,3 +26,7 @@ class ScopePlaidItemUniqueness < ActiveRecord::Migration[7.2]
|
||||
add_index :plaid_accounts, :plaid_id, name: "index_plaid_accounts_on_plaid_id", unique: true
|
||||
end
|
||||
end
|
||||
|
||||
# Backwards-compatible alias for environments that may still reference the
|
||||
# original migration constant derived from the old filename.
|
||||
ScopePlaidAccountUniquenessToItem = ScopePlaidItemUniqueness unless defined?(ScopePlaidAccountUniquenessToItem)
|
||||
|
||||
Reference in New Issue
Block a user