Sha256: 0fdaf7ef6884e14503e465d0ed4a3da1bd31096b512485b0b28a7c3274a6b739
Contents?: true
Size: 764 Bytes
Versions: 1
Compression:
Stored size: 764 Bytes
Contents
class Bookstore < ApplicationRecord default_scope { order('bookstores.position') } has_many :items acts_as_list validates_presence_of :name validates :url, url: true, allow_blank: true, length: { maximum: 255 } paginates_per 10 if defined?(EnjuPurchaseRequest) has_many :order_lists end end # == Schema Information # # Table name: bookstores # # id :bigint not null, primary key # name :text not null # zip_code :string # address :text # note :text # telephone_number :string # fax_number :string # url :string # position :integer # created_at :datetime not null # updated_at :datetime not null #
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
enju_library-0.4.0.rc.1 | app/models/bookstore.rb |