Sha256: e5e1b048b24268db00e2e43027adb40b404ee5d697b36576d4bbe0f60fb0c821
Contents?: true
Size: 434 Bytes
Versions: 1
Compression:
Stored size: 434 Bytes
Contents
module C80Push class Office < ActiveRecord::Base has_and_belongs_to_many :regions belongs_to :dealer default_scope -> { order(:ord => :asc) } validates :ord, :presence => true validates :title, :presence => true validates :addr, :presence => true validates :gps, :presence => true validates :tel, :presence => true end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
c80_push-0.1.0.1 | app/models/c80_push/office.rb |