Skip to content

Conversation

@willnet
Copy link

@willnet willnet commented Mar 7, 2025

Same issue as #216.

strong_migrations overrides ActiveRecord::SchemaDumper#initialize using Module#prepend, which caused a SystemStackError when used with activerecord-multi-tenant.

https://github.com/ankane/strong_migrations/blob/8e9baaa05c35fc9fdf206160c00b309c6e3a8bb6/lib/strong_migrations/schema_dumper.rb#L3-L7

Fix the issue by changing the alias in activerecord-multi-tenant to use prepend.

…lize with Module#prepend

Same issue as citusdata#216.

`strong_migrations` overrides `ActiveRecord::SchemaDumper#initialize` using `Module#prepend`, which caused a `SystemStackError` when used with `activerecord-multi-tenant`.

https://github.com/ankane/strong_migrations/blob/8e9baaa05c35fc9fdf206160c00b309c6e3a8bb6/lib/strong_migrations/schema_dumper.rb#L3-L7

Fix the issue by changing the `alias` in `activerecord-multi-tenant` to use `prepend`.
@willnet
Copy link
Author

willnet commented Mar 7, 2025

@microsoft-github-policy-service agree

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.

1 participant