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/20200302034841_create_cours...

17 lines
409 B

5 years ago
class CreateCourseAttendances < ActiveRecord::Migration[5.2]
def change
create_table :course_attendances do |t|
t.references :course, index: true
t.references :user, index: true
t.string :name
t.integer :mode, limit: 1, default: 0
t.date :attendance_date
t.time :start_time
t.time :end_time
5 years ago
t.string :attendance_code
5 years ago
t.timestamps
end
end
end