7 lines
154 B
Ruby
7 lines
154 B
Ruby
class Puzzle < ApplicationRecord
|
|
belongs_to :contest
|
|
has_one_attached :image
|
|
validates :name, presence: true
|
|
validates :brand, presence: true
|
|
end
|