Retrospring/app/models/moderation_vote.rb

7 lines
161 B
Ruby

class ModerationVote < ApplicationRecord
belongs_to :user
belongs_to :report
validates :user_id, presence: true
validates :report_id, presence: true
end