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/20200305121450_create_sta_a...

26 lines
836 B

class CreateStaAlls < ActiveRecord::Migration[5.2]
def change
create_table :sta_alls do |t|
t.integer :school_id, default: 0
t.integer :tea_count, default: 0
t.integer :stu_count, default: 0
t.integer :active_users_count, default: 0
t.integer :courses_count, default: 0
t.integer :curr_courses_count, default: 0
t.integer :homw_shixuns_count, default: 0
t.integer :homw_other_count, default: 0
t.integer :sources_count, default: 0
t.integer :videos_count, default: 0
t.integer :shixuns_count, default: 0
t.integer :myshixuns_count, default: 0
t.integer :mys_passed_count, default: 0
t.integer :games_count, default: 0
t.integer :games_passed_count, default: 0
t.integer :build_count, default: 0
t.timestamps
end
end
end