Sha256: d9f96951a4da81447b2736be46ab114eece0fbd0b35ed6e93f8babe68fb312c2

Contents?: true

Size: 619 Bytes

Versions: 6

Compression:

Stored size: 619 Bytes

Contents

class Inventory < ActiveRecord::Base
  attr_accessible :item_id, :inventory_id, :note
  belongs_to :item
  belongs_to :inventory_file

  validates_associated :item, :inventory_file
  validates_presence_of :item, :inventory_file
  validates_uniqueness_of :item_id, :scope => :inventory_file_id

  paginates_per 10
end

# == Schema Information
#
# Table name: inventories
#
#  id                :integer          not null, primary key
#  item_id           :integer
#  inventory_file_id :integer
#  note              :text
#  created_at        :datetime         not null
#  updated_at        :datetime         not null
#

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
enju_inventory-0.1.11.pre10 app/models/inventory.rb
enju_inventory-0.1.11.pre9 app/models/inventory.rb
enju_inventory-0.1.11.pre8 app/models/inventory.rb
enju_inventory-0.1.11.pre7 app/models/inventory.rb
enju_inventory-0.1.11.pre6 app/models/inventory.rb
enju_inventory-0.1.11.pre5 app/models/inventory.rb