All plugins failing on db migrate
Added by David Costelloe about 7 years ago
Hi Using the latest version of RedMine for some reason I get an error on every plugin:
bundle exec rake db:migrate:plugin RAILS_ENV=production
Rake aborted!
NoMethodError: undefined method 'alias_method_chain' for ActiveRedord:: Assoications::JoinDependency::JoinAssoication:Class
Do you mean? alias_method
Thanks
Replies (4)
RE: All plugins failing on db migrate - Added by Javier Menéndez Rizo about 7 years ago
This issue is related with rails 5.1: https://github.com/rails/rails/blob/5-1-stable/activesupport/CHANGELOG.md
RE: All plugins failing on db migrate - Added by David Costelloe about 7 years ago
Thanks for the link. Is there away to fix it or do I have to wait for a release?
RE: All plugins failing on db migrate - Added by Javier Menéndez Rizo about 7 years ago
yes, you can replace your alias_method_chain with prepend: https://www.justinweiss.com/articles/rails-5-module-number-prepend-and-the-end-of-alias-method-chain
RE: All plugins failing on db migrate - Added by David Costelloe about 7 years ago
Thank You very much!