Sha256: d8337f6137ab7372a93fb0820286b504b2cfc25dd8f3194db4b687181da8ba87
Contents?: true
Size: 760 Bytes
Versions: 14
Compression:
Stored size: 760 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 :integer 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 # deleted_at :datetime # created_at :datetime # updated_at :datetime #
Version data entries
14 entries across 14 versions & 1 rubygems