Sha256: 03349139505b4ce82284a04ebab6c113b2b29a7bb752640ade798db2d58579db

Contents?: true

Size: 422 Bytes

Versions: 7

Compression:

Stored size: 422 Bytes

Contents

class GeoCountry < ActiveRecord::Base
  attr_accessible :name, :created_at, :external_id, :iso_code_2, :iso_code_3, :id, :display
  
  has_many :postal_addresses
  has_many :geo_zones

  validates :name, :presence => {:message => 'Name cannot be blank'}
  validates :iso_code_2, :presence => {:message => 'ISO code 2 cannot be blank'}
  validates :iso_code_3, :presence => {:message => 'ISO code 3 cannot be blank'}
  
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
erp_base_erp_svcs-4.0.0 app/models/geo_country.rb
erp_base_erp_svcs-3.1.5 app/models/geo_country.rb
erp_base_erp_svcs-3.1.4 app/models/geo_country.rb
erp_base_erp_svcs-3.1.3 app/models/geo_country.rb
erp_base_erp_svcs-3.1.2 app/models/geo_country.rb
erp_base_erp_svcs-3.1.1 app/models/geo_country.rb
erp_base_erp_svcs-3.1.0 app/models/geo_country.rb