diff --git a/app/models/reaction.rb b/app/models/reaction.rb index 4a40e325..e1b54ce3 100644 --- a/app/models/reaction.rb +++ b/app/models/reaction.rb @@ -4,7 +4,7 @@ class Reaction < ApplicationRecord belongs_to :parent, polymorphic: true belongs_to :user - validates_uniqueness_of :parent_id, :scope => :user_id + validates :parent_id, uniqueness: { scope: :user_id } # rubocop:disable Rails/SkipsModelValidations after_create do