Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Force the insert on migration #192

Merged
merged 1 commit into from
Sep 17, 2021

Conversation

ezr-ondrej
Copy link
Member

If we do not force inserts, Rails tries to skip duplicates, which is not supported on some environments.
This makes the migration flaky and fail on badly configured environmets for no reason.

Fixes #191

If we do not force inserts, Rails tries to skip duplicates, which is not supported on some environments.
This makes the migration flaky and fail on badly configured environmets for no reason.

Fixes theforeman#191
@ezr-ondrej ezr-ondrej merged commit 115599b into theforeman:master Sep 17, 2021
@ezr-ondrej ezr-ondrej deleted the insert_all_bang branch September 17, 2021 13:21
@ezr-ondrej
Copy link
Member Author

CP 1.0: dd96ad2

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.

Migration fails with PGSql adapter error on some environments
1 participant