Sha256: 8504b22d5f3cafbc5bb3fa05810acc1a9c483e6a36bfc2997bf478d137dc75d9
Contents?: true
Size: 327 Bytes
Versions: 7
Compression:
Stored size: 327 Bytes
Contents
class GeoCountry < ActiveRecord::Base 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