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.
psfpeqmhf/db/migrate/20200526080453_create_exerc...

15 lines
480 B

class CreateExerciseBankRandomSettings < ActiveRecord::Migration[5.2]
def change
create_table :exercise_bank_random_settings do |t|
t.integer :difficulty, comment: "难度"
t.integer :sub_discipline_id, comment: "课程"
t.integer :quanlity, comment: "题目数量"
t.integer :item_type, index: true, comment: "题目类型"
t.integer :exercise_bank_id, index: true, comment: "外键,关联exercise_bank"
t.timestamps
end
end
end