Update enum syntax to use the new Rails 7.0 style (#29217)
This commit is contained in:
parent
1d9d14b8de
commit
cfadb87077
15 changed files with 20 additions and 20 deletions
|
@ -24,7 +24,7 @@ class BulkImport < ApplicationRecord
|
|||
belongs_to :account
|
||||
has_many :rows, class_name: 'BulkImportRow', inverse_of: :bulk_import, dependent: :delete_all
|
||||
|
||||
enum type: {
|
||||
enum :type, {
|
||||
following: 0,
|
||||
blocking: 1,
|
||||
muting: 2,
|
||||
|
@ -33,7 +33,7 @@ class BulkImport < ApplicationRecord
|
|||
lists: 5,
|
||||
}
|
||||
|
||||
enum state: {
|
||||
enum :state, {
|
||||
unconfirmed: 0,
|
||||
scheduled: 1,
|
||||
in_progress: 2,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue