Skip to content

Change db_configs_with_versions call when Rails is higher than 7.1#326

Merged
Morozzzko merged 2 commits intomainfrom
hotfix/adapt-migrate-with-data-to-rails-7.1-or-higher
Aug 20, 2024
Merged

Change db_configs_with_versions call when Rails is higher than 7.1#326
Morozzzko merged 2 commits intomainfrom
hotfix/adapt-migrate-with-data-to-rails-7.1-or-higher

Conversation

@bruno-costanzo
Copy link
Collaborator

@bruno-costanzo bruno-costanzo commented Aug 20, 2024

Before Rails 7.1

def db_configs_with_versions(db_configs)

= Rails 7.1

def db_configs_with_versions(environment = env)

This is producing and error because is overriding the env and not finding pending migrations

Error screenshot

image

@Morozzzko Morozzzko mentioned this pull request Aug 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants