about summary refs log tree commit diff
path: root/app/models/import.rb
diff options
context:
space:
mode:
authorNick Schonning <nschonni@gmail.com>2023-02-19 23:00:36 -0500
committerGitHub <noreply@github.com>2023-02-20 05:00:36 +0100
commit63e63538861bd850a38a282e37de046639afa993 (patch)
tree6163b8725c595af0cc40460b0ff2a5eee5988ffc /app/models/import.rb
parent44a7d87cb1f5df953b6c14c16c59e2e4ead1bcb9 (diff)
Autofix Rubocop Rails/EnumHash (#23737)
Diffstat (limited to 'app/models/import.rb')
-rw-r--r--app/models/import.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/import.rb b/app/models/import.rb
index 00a54892e..cd33eb07b 100644
--- a/app/models/import.rb
+++ b/app/models/import.rb
@@ -24,7 +24,7 @@ class Import < ApplicationRecord
 
   belongs_to :account
 
-  enum type: [:following, :blocking, :muting, :domain_blocking, :bookmarks]
+  enum type: { following: 0, blocking: 1, muting: 2, domain_blocking: 3, bookmarks: 4 }
 
   validates :type, presence: true
   validates_with ImportValidator, on: :create