# encoding: utf-8
class CTypCinnosti < ActiveRecord::Base
  set_primary_key :ID_Typ_Cinnosti
  set_table_name :c_typ_cinnosti
  
  has_many :cinnosti, :foreign_key => 'ID_Typ_Cinnosti'
  
  validates :Nazov, :presence => true, :uniqueness => true
  
  validates_length_of :Nazov, :maximum => 20
  validates_length_of :Popis, :maximum => 50
end
