Sha256: 906c78b17cd68f0dd926b6fda97fe53d082cb7c5c03efcfc903297231dbf4ad7
Contents?: true
Size: 441 Bytes
Versions: 6
Compression:
Stored size: 441 Bytes
Contents
class AnswerHasItem < ActiveRecord::Base 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
6 entries across 6 versions & 1 rubygems