activerecord-multi-tenant icon indicating copy to clipboard operation
activerecord-multi-tenant copied to clipboard

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

Open willnet opened this issue 10 months ago • 1 comments

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.

willnet avatar Mar 07 '25 07:03 willnet

@microsoft-github-policy-service agree

willnet avatar Mar 07 '25 07:03 willnet