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.
14 lines
383 B
14 lines
383 B
class CreateSchoolCategories < ActiveRecord::Migration[5.0]
|
|
def change
|
|
create_table :school_categories do |t|
|
|
t.references :school, foreign_key: true
|
|
t.references :category, foreign_key: true
|
|
t.integer :attempt_count, default: 0
|
|
t.integer :response_count, default: 0
|
|
t.integer :answer_index_total, default: 0
|
|
|
|
t.timestamps
|
|
end
|
|
end
|
|
end
|