I am building a multiple choice exam, which is better, to store each choice into choices table, and link them to the question, or just create an object which contains all the choices and question text, and store it serialized into DB as one record ??
If I chose the serialized object method, I will save my self thousands of choices records belonging to questions.
class Quiz < ActiveRecord::Base
has_many :choices
end
class Choice < ActiveRecord::Base
belongs_to :quiz
end
So, which method to consider ??