Sha256: 1388d500d12b4310bb2fc8714fd1a2e6a9028a3b1a4e3aca75aaa7246fcd5f39
Contents?: true
Size: 486 Bytes
Versions: 8
Compression:
Stored size: 486 Bytes
Contents
class AnswerHasItem < ActiveRecord::Base attr_accessible :answer_id, :item_id belongs_to :answer belongs_to :item validates_uniqueness_of :item_id, :scope => :answer_id acts_as_list :scope => :answer_id end # == Schema Information # # Table name: answer_has_items # # id :integer not null, primary key # answer_id :integer # item_id :integer # position :integer # created_at :datetime not null # updated_at :datetime not null #
Version data entries
8 entries across 8 versions & 1 rubygems