Sha256: a289685a6c705aec746b63ceb9dec78320133844f9ea37af369e4b92f32b7aad
Contents?: true
Size: 368 Bytes
Versions: 1
Compression:
Stored size: 368 Bytes
Contents
module C80Push class Region < ActiveRecord::Base has_and_belongs_to_many :dealers has_and_belongs_to_many :offices scope :def_order, -> { order(:ord => :asc) } validates :title, :uniqueness => true, :presence => true, :length => { in: 2..90 } validates :ord, :presence => true end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
c80_push-0.1.0 | app/models/c80_push/region.rb |