Crash with the message "undefined method `alias_method_chain'" when connecting to Microsoft SQL Server
I ran into this issue as well. I made the following changes in the GemFile to meet all the dependencies. However, I am using MS Sql Server, so you will need to find the corresponding adapter for mysql.
Change: gem "rails", "5.2.2"
To: gem "rails", :git => "https://github.com/rails/rails.git", :branch => "5-2-2"
Change: gem "tiny_tds", "~> 1.0.5"
To: "tiny_tds", "~> 2.1.2"
Change: gem "activerecord-sqlserver-adapter",
To: gem "activerecord-sqlserver-adapter", :git => "https://github.com/rails-sqlserver/activerecord-sqlserver-adapter.git",
#2 Updated by Nigel Wilson almost 3 years ago
Hi Go MAEDA,
I will try to get you a crash log for this in a day or two. Note that this error (undefined method `alias_method_chain') occurred when trying to install Redmine v4 from git master as an upgrade from v2.5.2. Requirements (Ruby 2.5 and Rails 5.2.2) were confirmed installed.
- Install Redmine via Helicon instructions: http://www.helicontech.com/articles/installing-redmine-on-windows-in-production/ , but do not click Finish.
- replace /ruby19 folder with previously installed version of ruby.
- Go into the redmine web folder created by the Helicon tool and edit the deploy.rb file:
- set the REDMINE variable to the version of redmine you want to install. e.g.: REDMINE = "master"
- prepend all the rake commands with bundle exec. .e.g: bundle exec rake --trace db:create
- Go back to Helicon installer and click finish.
#4 Updated by Go MAEDA almost 3 years ago
We have to wait for the release of the latest version of activerecord-sqlserver-adapter that supports Rails 5.2 to resolve this issue.