Update deprecated enum style in older migrations (#32925)

This commit is contained in:
Matt Jankowski 2024-12-12 05:44:58 -05:00 committed by GitHub
parent 4bf6af3b61
commit 708919ee93
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 5 additions and 5 deletions

View file

@ -6,7 +6,7 @@ class FillAccountSuspensionOrigin < ActiveRecord::Migration[5.2]
class MigrationAccount < ApplicationRecord
self.table_name = :accounts
scope :suspended, -> { where.not(suspended_at: nil) }
enum suspension_origin: { local: 0, remote: 1 }, _prefix: true
enum :suspension_origin, { local: 0, remote: 1 }, prefix: true
end
def up