From c8c08e143c2f7947cecf55e05dc7d14e5347ff33 Mon Sep 17 00:00:00 2001 From: yystopf Date: Wed, 22 Oct 2025 09:48:15 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=EF=BC=9A=E7=A7=BB=E9=99=A4?= =?UTF-8?q?=E9=AA=8C=E8=AF=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/models/user_vote_option.rb | 2 -- 1 file changed, 2 deletions(-) diff --git a/app/models/user_vote_option.rb b/app/models/user_vote_option.rb index 11f11c03c..c1e4f3f10 100644 --- a/app/models/user_vote_option.rb +++ b/app/models/user_vote_option.rb @@ -4,8 +4,6 @@ class UserVoteOption < ApplicationRecord validates :user_id, uniqueness: { scope: :vote_option_id, message: "您已经投过票了" } - validate :user_can_vote_only_once_per_vote - private def user_can_vote_only_once_per_vote return unless user && vote_option