Skip to content

Commit 7ed5fff

Browse files
committed
Fix 'enum' keyword argument for Rails 8.0
1 parent 4cd82de commit 7ed5fff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/models/dojo_event_service.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ class DojoEventService < ApplicationRecord
55
belongs_to :dojo
66
has_many :upcoming_events, dependent: :destroy
77

8-
enum name: EXTERNAL_SERVICES + INTERNAL_SERVICES
8+
enum :name, EXTERNAL_SERVICES + INTERNAL_SERVICES
99

1010
validates :name, presence: true
1111
validates :group_id, uniqueness: { scope: :name }, unless: Proc.new { |a| a.group_id.blank? }

0 commit comments

Comments
 (0)