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
377 B
12 lines
377 B
class AddDefaultOnIsRandom < ActiveRecord::Migration[5.2]
|
|
def up
|
|
change_column :examination_banks, :is_random, :boolean, default: false
|
|
change_column :exercises, :is_random, :boolean, default: false
|
|
end
|
|
|
|
def down
|
|
change_column :examination_banks, :is_random, :boolean, default: true
|
|
change_column :exercises, :is_random, :boolean, default: true
|
|
end
|
|
end
|