Update enum
away from deprecated (#29678)
This commit is contained in:
parent
01464074c9
commit
cdd168f5d3
3 changed files with 3 additions and 3 deletions
|
@ -42,7 +42,7 @@ module Mastodon::CLI
|
|||
class SeveredRelationship < ApplicationRecord; end
|
||||
|
||||
class DomainBlock < ApplicationRecord
|
||||
enum severity: { silence: 0, suspend: 1, noop: 2 }
|
||||
enum :severity, { silence: 0, suspend: 1, noop: 2 }
|
||||
scope :by_severity, -> { in_order_of(:severity, %w(noop silence suspend)).order(:domain) }
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue