Sha256: b817f4a89376a20872d9cac5f6fa8f27d5ca6ede2afb8f602e14f1662851e8c6
Contents?: true
Size: 341 Bytes
Versions: 7
Compression:
Stored size: 341 Bytes
Contents
class GeoZone < ActiveRecord::Base 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
7 entries across 7 versions & 1 rubygems