Actions
Bug #14983
openFaking host and other models with STI in migrations doesn't work due to STI
Status:
New
Priority:
Normal
Assignee:
-
Category:
DB migrations
Target version:
-
Description
We often use the fake classes in our migrations to avoid the issues with the real active record models when
the data are not migrated fully yet + some hooks might trigger orchestration.
This approach fails with `Host` and other STI objects, as it loads the class based on the `type` attribute
(see related issues).
We should provide a standard way how to do the data manipulations safely without risking unexpected issues.
Often the errors doesn't show immediately in isolation, but rather when multiple plugins are in place.
Updated by Ivan Necas over 8 years ago
- Related to Bug #14982: host description migration goes throuh unfaked-host validations added
Updated by Ivan Necas over 8 years ago
- Related to Bug #14643: Migration broken with discovered hosts added
Updated by Ivan Necas over 8 years ago
- Subject changed from Faking host in migrations doesn't work due to STI to Faking host and other modedels with STI in migrations doesn't work due to STI
Updated by Ivan Necas over 8 years ago
- Subject changed from Faking host and other modedels with STI in migrations doesn't work due to STI to Faking host and other models with STI in migrations doesn't work due to STI
- Category deleted (
DB migrations)
Updated by Ivan Necas over 8 years ago
- Related to Bug #15038: migrate_foreman error upgrading from 6.1 to 6.2 -> error: users.helptips_enabled does not exist added
Updated by Ivan Necas over 8 years ago
- Related to Refactor #15866: Provide alternative way of migrating data as oposed misuing db:migrate for this purpose added
Updated by Ori Rabin about 7 years ago
- Related to Bug #21609: Migrations on clean db with rails 5 fails added
Actions