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.
15 lines
461 B
15 lines
461 B
class CreateExerciseRandomSettings < ActiveRecord::Migration[5.2]
|
|
def change
|
|
create_table :exercise_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_id, index: true, comment: "外键,关联exercise"
|
|
|
|
|
|
t.timestamps
|
|
end
|
|
end
|
|
end
|