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