# encoding: utf-8
class CStavSponzorDar < ActiveRecord::Base
  set_primary_key :ID_Stav_Dar
  set_table_name :c_stav_sponzor_dar
  
  has_many :sponzorske_dary
  
  validates :Nazov, :presence => true, :uniqueness => true
  validates_length_of :Nazov, :maximum => 20
  validates_length_of :Popis, :maximum => 50
end
