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/20200109062658_create_subje...

15 lines
448 B

class CreateSubjectRecords < ActiveRecord::Migration[5.2]
def change
create_table :subject_records do |t|
t.references :subject
t.integer :study_count, default: 0
t.integer :course_study_count, default: 0
t.integer :initiative_study, default: 0
t.integer :passed_count, default: 0
t.integer :course_used_count, default: 0
t.integer :school_used_count, default: 0
t.timestamps
end
end
end