fixed migration on attendance_record record date, added pkey