10 lines
180 B
Ruby
10 lines
180 B
Ruby
class Puzzle < ApplicationRecord
|
|
belongs_to :contest
|
|
|
|
has_many :completions
|
|
has_one_attached :image
|
|
|
|
validates :name, presence: true
|
|
validates :brand, presence: true
|
|
end
|