Sha256: 7142a3b31a9e88acfe3edd1a40a8a88fe3e5f1db8a054664bcc991bfb6a0ed0f
Contents?: true
Size: 451 Bytes
Versions: 9
Compression:
Stored size: 451 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 # updated_at :datetime #
Version data entries
9 entries across 9 versions & 1 rubygems