Wouldn't this work for you?
class User < ActiveRecord::Base
has_many :answers
end
class Question < ActiveRecord::Base
has_many :answers
end
class Answer < ActiveRecord::Base
belongs_to :question
belongs_to :user
end
You table structure will be like
answers
-question_id
-user_id
-answer_text