Project

General

Profile

Actions

Defect #11838

closed

Cannot create a new forum

Added by Erica Gallindo over 12 years ago. Updated over 12 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
Forums
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Resolution:
Invalid
Affected version:

Description

When I'm trying to create a new forum, I've got an "Internal Error"; the log file presents the following error:

NameError (undefined local variable or method `parent_id' for #<Board:0x10defb88>):
  app/models/board.rb:85:in `validate_board'
  app/controllers/boards_controller.rb:70:in `create'

I'm using devel - r10382

is there anything I can do to fix this or is it really a bug?


Files

Captura de Tela 2012-09-15 às 12.34.16.png (20.2 KB) Captura de Tela 2012-09-15 às 12.34.16.png Internal Error Erica Gallindo, 2012-09-15 17:35
Actions #1

Updated by Etienne Massip over 12 years ago

Did you run database migrations?

Actions #2

Updated by Jean-Philippe Lang over 12 years ago

  • Status changed from New to Closed
  • Resolution set to Invalid

This is a migration issue indeed.

Actions #3

Updated by Erica Gallindo over 12 years ago

You are right. As I update my redmine installation every week, I must have forgotten to run migrate in one of my updates. Thanks for the feedback. Lesson learned!

# rake db:migrate RAILS_ENV=production
==  AddBoardsParentId: migrating ==============================================
-- add_column(:boards, :parent_id, :integer)
   -> 0.2695s
==  AddBoardsParentId: migrated (0.2696s) =====================================
Actions

Also available in: Atom PDF