Skip to content

Commit 313b51d

Browse files
authored
fix: rails 8 compatiability
1 parent 470e204 commit 313b51d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/models/spam_report.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ class SpamReport < ApplicationRecord
55
validates :forum_post_id, :user_id, :reason, presence: true
66
validates :details, presence: true, if: -> { reason == "others" }
77

8-
enum reason: {
8+
enum :reason, {
99
sexual_content: 0,
1010
violent_content: 1,
1111
irrelevant_content: 2,

0 commit comments

Comments
 (0)