summaryrefslogtreecommitdiff
path: root/app/models/address.rb
blob: bcf3474357c85731fb3443c5d7fae73d0f42018f (plain)
1
2
3
4
5
6
7
8
class Address < ActiveRecord::Base
  attr_accessible :phone_book_entry_id, :line1, :line2, :street, :zip_code, :city, :country_id, :position, :uuid

  belongs_to :country

  validates_presence_of :uuid
  validates_uniqueness_of :uuid
end