Closed danielsp45 closed 1 year ago
I think we should also change the function names, for example:
list_enrollments
tolist_activity_enrollments
so everything stays under the same context
I think that's a bit redundant because you will do Activities.list_enrollments()
and then Events.list_enrollments()
. It will already be self explanatory which one I'm referring to.
AI-Generated Summary: This pull request contains a refactor of the enrollments schema in the project. It includes renaming
Enrollment
toActivityEnrollment
for clarity in the system. Additionally, a newEventEnrollment
schema was introduced for tracking event enrollment separate to activity enrollment. With the renaming of the schemas, the associated files, links, and tests also underwent renaming to match. The seed file was also edited to createActivityEnrollment
instead ofEnrollment
. Furthermore, a new migration file was added to create theevent_enrollments
table in the database. Overall, this change would enhance the readability and organization of the enrollments in the system and prepare the structure for the new feature of event enrollment.