Project

General

Profile

migrating from 1.4 to 2.1.2

Added by Christian Kiesel almost 12 years ago

Can anybody please tell me how to fix those two errors? (show Issues and Konfiguration)
I get 500 Error with the following lines in production.log

I tried rake migrate:db but it did´nt help.
Maybe I was in the wrong directory?

I tried it in /usr/local/share/redmine-2.1.2 Directory

ActionView::Template::Error (undefined method `field_name'
ActionView::Template::Error (missing attribute: parent_id):

Its my first time installing redmine.
Thanks in advance!


Replies (4)

RE: migrating from 1.4 to 2.1.2 - Added by Ivan Cenov almost 12 years ago

Did you set RAILS_ENV to 'production' before executing migration?

RE: migrating from 1.4 to 2.1.2 - Added by Christian Kiesel almost 12 years ago

I executed this command:

rake db:migration RAILS_ENV=production

But I´m not sure about the directory
I did in in Redmine Root /usr/local/share/redmine-2.1.2

RE: migrating from 1.4 to 2.1.2 - Added by Christian Kiesel almost 12 years ago

it was

rake db:migrate RAILS_ENV=production

RE: migrating from 1.4 to 2.1.2 - Added by Christian Kiesel almost 12 years ago

solved the problem first configure test and develop Enviroment in database.yml
and then restart thin server

    (1-4/4)