Skip to content

Feature/cleanup orphan farm#650

Merged
vincent-olivert-riera merged 1 commit intoline:masterfrom
hoangpn:feature/cleanup_orphan_farm
Sep 24, 2025
Merged

Feature/cleanup orphan farm#650
vincent-olivert-riera merged 1 commit intoline:masterfrom
hoangpn:feature/cleanup_orphan_farm

Conversation

@hoangpn
Copy link
Contributor

@hoangpn hoangpn commented Sep 24, 2025

The relationship between Farm and Project is One-To-One. One-To-One relations are asymmetrical. This means that one object will always depend on the other. In our Promgen, a Farm will always be linked to a specific Project. We have also removed the feature that links a Project with an existing Farm in the database so that no one will be able to use the existing orphan Farms, and these Farms will become redundant. Therefore, we have created a migration script to clean up these orphan Farms.

The relationship between Farm and Project is One-To-One. One-To-One relations are
asymmetrical. This means that one object will always depend on the other. In our Promgen,
a Farm will always be linked to a specific Project. We have also removed the feature
that links a Project with an existing Farm in the database so that no one will be able
to use the existing orphan Farms, and these Farms will become redundant. Therefore, we
have created a migration script to clean up these orphan Farms.
@hoangpn hoangpn force-pushed the feature/cleanup_orphan_farm branch from 05eb620 to 27d486e Compare September 24, 2025 06:45
@vincent-olivert-riera vincent-olivert-riera merged commit 4676bea into line:master Sep 24, 2025
5 checks passed
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.

2 participants