The models you have are: Campaign
, User
, Card
, Question
and Response
. Here's how I would do it using ActiveRecord
Campaigns exist with questions and responses by users. The Campaign model would look like this:
class Campaign < ActiveRecord::Base
has_many :questions
has_many :responses, :through => :questions