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