Skip to content

Conversation

@polypixeldev
Copy link
Member

@polypixeldev polypixeldev commented Jan 23, 2026

Summary of the problem

As part of work on #12188, we're going to be adding affiliations to applications. However, since an event is not yet created at this time, we need to make affiliations have a polymorphic relationship to either Event or Event::Application. Once the application is approved and the event created, all we'll have to do is switch over affiliable.

Describe your changes

Adds a new affiliable polymorphic relationship on Event::Affiliation. The migration automatically copies over the current linked events and makes the relationship non-null.

Controllers and views that work with affiliations have been updated to use the new polymorphic relationship, and the routes for affiliations are now in the root scope instead of being nested inside the events resource.

After this PR is deployed, I'll make a new one to delete the old event relationship.

@polypixeldev polypixeldev requested a review from a team January 23, 2026 01:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants