You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
educoder/db/migrate/20190514083047_change_quest...

12 lines
383 B

class ChangeQuestionRandomExercises < ActiveRecord::Migration[5.2]
def up
change_column :exercises,:question_random,:boolean,default: false
change_column :exercises,:choice_random,:boolean,default: false
end
def down
change_column :exercises,:question_random,:integer,default: 0
change_column :exercises,:choice_random,:integer,default: 0
end
end