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

Version Path
erp_base_erp_svcs-3.0.7 app/models/geo_zone.rb
erp_base_erp_svcs-3.0.6 app/models/geo_zone.rb
erp_base_erp_svcs-3.0.5 app/models/geo_zone.rb
erp_base_erp_svcs-3.0.4 app/models/geo_zone.rb
erp_base_erp_svcs-3.0.3 app/models/geo_zone.rb
erp_base_erp_svcs-3.0.2 app/models/geo_zone.rb
erp_base_erp_svcs-3.0.1 app/models/geo_zone.rb