about summary refs log tree commit diff stats
path: root/app/models/score.rb
blob: 1958389894715465128040453abc0c85a85c1342 (plain) (blame)
1
2
3
4
5
6
7
class Score < ApplicationRecord
  belongs_to :puzzle

  validates :name, presence: true
  validates :ip, presence: true
  validates_uniqueness_of :name, scope: :puzzle_id
end