Skip to content

Commit

Permalink
Fix enum compatibility for rails 8
Browse files Browse the repository at this point in the history
  • Loading branch information
DmitryTsepelev committed Oct 19, 2024
1 parent eabc397 commit 9003917
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/helpers/models.rb
Original file line number Diff line number Diff line change
Expand Up @@ -71,5 +71,5 @@ class ClubMember < ActiveRecord::Base
belongs_to :club
belongs_to :user

enum role: { owner: 0, contributor: 1 }
enum :role, { owner: 0, contributor: 1 }
end

0 comments on commit 9003917

Please sign in to comment.