class CreateQuestions
Public Instance Methods
change()
click to toggle source
# File lib/survey_constructor/generators/templates/migrate/20180523222506_create_questions.rb, line 2 def change create_table :questions do |t| t.string :title t.integer :question_type t.belongs_to :survey, index: true t.timestamps end end