# encoding: utf-8
class CStavCinnosti < ActiveRecord::Base
  set_primary_key :ID_Stav_Cinnosti
  set_table_name :c_stav_cinnosti
  
  has_many :cinnosti, :foreign_key => 'ID_Stav_Vstup'
  
  validates :Nazov, :presence => true, :uniqueness => true
  validates_length_of :Nazov, :maximum =>10
end
