Sha256: 72424e8eec109d905004fba6742397aa2b85113dafdf439542389826fe791519

Contents?: true

Size: 180 Bytes

Versions: 1

Compression:

Stored size: 180 Bytes

Contents

module Shopper
  class Country < ApplicationRecord
    has_many :addresses

    validates :name, :code, presence: true, uniqueness: true

    def to_s
      name
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
shoppper-0.1.0 app/models/shopper/country.rb