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

Version Path
enju_library-0.3.11 app/models/bookstore.rb
enju_library-0.3.10 app/models/bookstore.rb
enju_library-0.3.9 app/models/bookstore.rb
enju_library-0.3.8 app/models/bookstore.rb
enju_library-0.3.8.rc.2 app/models/bookstore.rb
enju_library-0.3.8.rc.1 app/models/bookstore.rb
enju_library-0.3.7 app/models/bookstore.rb
enju_library-0.3.6 app/models/bookstore.rb
enju_library-0.4.0.beta.4 app/models/bookstore.rb
enju_library-0.4.0.beta.3 app/models/bookstore.rb
enju_library-0.4.0.beta.2 app/models/bookstore.rb
enju_library-0.4.0.beta.1 app/models/bookstore.rb
enju_library-0.3.5 app/models/bookstore.rb
enju_library-0.3.4 app/models/bookstore.rb