Sha256: 945113094fd8bd358f5d25a0a6c51d1d51c1ee58347e2028502ead684ade5e22
Contents?: true
Size: 412 Bytes
Versions: 13
Compression:
Stored size: 412 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
13 entries across 13 versions & 1 rubygems