clarion/app/models/hall.rb

7 lines
135 B
Ruby
Raw Normal View History

2014-10-12 13:26:07 +03:00
class Hall < ActiveRecord::Base
belongs_to :conference
2014-10-14 23:07:50 +03:00
has_many :slots, dependent: :destroy
2014-10-14 23:55:17 +03:00
validates :name, presence: true
2014-10-12 13:26:07 +03:00
end