class Auditorium < ActiveRecord::Base
  # musimy jawnie zdefiniowa nazw tabeli, bo reguy infleksji Rails
  # zawodz w tym przypadku
  set table_name 'auditoriums'
  set_primary_keys :room :theatre_id

  belongs_to :theatre
  has_many :movie_showtimes, :dependent => :destroy
end
