Skip to content

Fix SystemStackError when extending ActiveRecord::SchemaDumper#initialize with Module#prepend - #271

Open
Shinichi Maeshima (willnet) wants to merge 1 commit into
citusdata:masterfrom
willnet:fix-system-stack-error-with-strong_migrations
Open

Fix SystemStackError when extending ActiveRecord::SchemaDumper#initialize with Module#prepend#271
Shinichi Maeshima (willnet) wants to merge 1 commit into
citusdata:masterfrom
willnet:fix-system-stack-error-with-strong_migrations

Conversation

@willnet

Copy link
Copy Markdown

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
Copy Markdown
Author

@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