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.
12 lines
383 B
12 lines
383 B
6 years ago
|
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
|