Patch #1932
closedDeployment problems with migrations
0%
Description
I wasn't able to install the application as the migrations failed at different stages. Mainly it was due to #each_key and #each_value not existing. I replaced the offending lines. Not sure if it is related to my rails version (2.0.4 not 2.0.2 as found in the original environment.rb) or to my ruby version (1.8.6). Anyway: attached is my patch - my it be included in the distribution or help other people with the same problem.
Also the projects controller was broken due to the same problems.
The patch is based off r1637 of the 0.7-stable branch.
Files
Updated by Jean-Philippe Lang about 16 years ago
- Status changed from New to Closed
Not sure if it is related to my rails version
Of course it is. And note that your patch is broken:
CustomField.find(:all).group_by(&:type).each do |fields|
is not the same as:
CustomField.find(:all).group_by(&:type).each_value do |fields|
This was fixed in trunk when porting Redmine to Rails 2.1.0 (r1623).
But 0.7 branch requires Rails 2.0.2. So, please revert all your changes and install the required Rails version by running:
gem install rails -v 2.0.2
You can keep Rails 2.0.4 installed.