After we change the model structure, we need to change the event creation to match. We essentially need to modify the controller so that it creates an Event on the User's schedule. For this, we must modify the User model:
MODEL:
User
-has_one :schedule (remove Event relation)
Then we change the controller and views to match. This should be rather simple as we are not making big changes yet. This is just so that we can have something working to test.
After we change the model structure, we need to change the event creation to match. We essentially need to modify the controller so that it creates an Event on the User's schedule. For this, we must modify the User model:
MODEL: User -has_one :schedule (remove Event relation)
Then we change the controller and views to match. This should be rather simple as we are not making big changes yet. This is just so that we can have something working to test.