ilyakatz / data-migrate

Migrate and update data alongside your database structure.
MIT License
1.4k stars 192 forks source link

Change db_configs_with_versions call when Rails is higher than 7.1 #326

Closed bruno-costanzo closed 3 weeks ago

bruno-costanzo commented 3 weeks ago

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