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

Version Path
enju_question-0.0.15 app/models/answer_has_item.rb
enju_question-0.0.14 app/models/answer_has_item.rb
enju_question-0.0.13 app/models/answer_has_item.rb
enju_question-0.0.12 app/models/answer_has_item.rb
enju_question-0.0.11 app/models/answer_has_item.rb
enju_question-0.0.10 app/models/answer_has_item.rb
enju_question-0.0.9 app/models/answer_has_item.rb
enju_question-0.0.8 app/models/answer_has_item.rb
enju_question-0.0.7 app/models/answer_has_item.rb
enju_question-0.0.6 app/models/answer_has_item.rb
enju_question-0.0.5 app/models/answer_has_item.rb
enju_question-0.0.4 app/models/answer_has_item.rb
enju_question-0.0.3 app/models/answer_has_item.rb