socialforge/db/migrate/20161129084352_add_column_t...

8 lines
279 B
Ruby

class AddColumnToExercises < ActiveRecord::Migration
def change
add_column :exercises, :question_random, :integer, :default => 0
add_column :exercises, :choice_random, :integer, :default => 0
add_column :exercise_answers, :score, :integer, :default => -1
end
end