Sha256: 62fc21c88d3bf5fc8f82d44c66ca39cfb8a9493c6301fef49afcac8693930049
Contents?: true
Size: 816 Bytes
Versions: 4
Compression:
Stored size: 816 Bytes
Contents
class Bookstore < ActiveRecord::Base 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(255) # address :text # note :text # telephone_number :string(255) # fax_number :string(255) # url :string(255) # position :integer # deleted_at :datetime # created_at :datetime not null # updated_at :datetime not null #
Version data entries
4 entries across 4 versions & 1 rubygems