修复:移除验证

This commit is contained in:
yystopf 2025-10-22 09:48:15 +08:00
parent 6d112ffdf5
commit c8c08e143c
1 changed files with 0 additions and 2 deletions

View File

@ -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