deleted appointments table migration and patient_id foreign key reference to appointment table migration and added a new appointments table