Project

General

Profile

Actions

Patch #1932

closed

Deployment problems with migrations

Added by Kai Krakow over 15 years ago. Updated over 15 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
Database
Target version:
-
Start date:
2008-09-22
Due date:
% Done:

0%

Estimated time:

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

patch-0.7-stable-r1637.diff (2.51 KB) patch-0.7-stable-r1637.diff Kai Krakow, 2008-09-22 12:18
Actions #1

Updated by Jean-Philippe Lang over 15 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.

Actions

Also available in: Atom PDF