Sha256: e74eaa7b117891522264f51db3111425d772bf5986355ab4e6e179fe8398a578
Contents?: true
Size: 570 Bytes
Versions: 6
Compression:
Stored size: 570 Bytes
Contents
class Inventory < ActiveRecord::Base 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