Skip to content

Use normal associations instead of polymorphic

Rubén Dávila requested to merge 26908-add-foreign-keys-to-timelogs into master

What does this MR do?

Change the issuable association from polymorphic to regular associations.

Are there points in the code the reviewer needs to double check?

Yes, migrations.

Why was this MR needed?

Because we need to use foreign keys in order to have data integrity and improve the performance of the queries, this change makes sense given the timelogs table is going to be huge.

Screenshots (if relevant)

Does this MR meet the acceptance criteria?

What are the relevant issue numbers?

Closes #26908 (closed)

Merge request reports