Sha256: 59939929b5185d470c750e8c82e09e2971d38512cca333ccc34428db102af099
Contents?: true
Size: 402 Bytes
Versions: 8
Compression:
Stored size: 402 Bytes
Contents
class GeoZone < ActiveRecord::Base attr_accessible :geo_country_id, :zone_code, :zone_name belongs_to :geo_country has_many :postal_addresses validates :geo_country_id, :presence => {:message => 'Geo country id cannot be blank'} validates :zone_code, :presence => {:message => 'Zone code cannot be blank'} validates :zone_name, :presence => {:message => 'Zone name cannot be blank'} end
Version data entries
8 entries across 8 versions & 1 rubygems