# encoding: utf-8
class CStavVstupeniek < ActiveRecord::Base
  set_primary_key :ID_Stav
  set_table_name :c_stav_vstupeniek
  
  has_many :podujatia, :foreign_key => 'ID_Stav'
  
  validates :Nazov, :presence => true, :uniqueness => true
  validates_length_of :Nazov, :maximum => 15
                   
end
