clarion/app/models/hall.rb

9 lines
155 B
Ruby
Raw Permalink 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
2015-10-20 10:13:42 +03:00
translates :name
2014-10-12 13:26:07 +03:00
end