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/20190610013620_change_quest...

13 lines
401 B

6 years ago
class ChangeQuestionRandomDefaultTrue < ActiveRecord::Migration[5.2]
#试卷的题目和选项的随机显示,需默认勾选
def up
change_column_default :exercises,:question_random,true
change_column_default :exercises,:choice_random,true
end
def down
change_column_default :exercises,:question_random,false
change_column_default :exercises,:choice_random,false
end
end