Commit 66c8c1e2 authored by Jean-Philippe Lang's avatar Jean-Philippe Lang

Fixed: unable to migrate from an empty database.

(Message model is loaded at startup, which fails if it doesn't exist)

git-svn-id: http://redmine.rubyforge.org/svn/trunk@771 e93f8b46-1217-0410-a6f0-8f06a7374b81
parent 05e27d0d
......@@ -22,7 +22,10 @@ class Message < ActiveRecord::Base
has_many :attachments, :as => :container, :dependent => :destroy
belongs_to :last_reply, :class_name => 'Message', :foreign_key => 'last_reply_id'
acts_as_searchable :columns => ['subject', 'content'], :include => :board, :project_key => "project_id"
acts_as_searchable :columns => ['subject', 'content'],
:include => :board,
:project_key => 'project_id',
:date_column => 'created_on'
acts_as_event :title => Proc.new {|o| "#{o.board.name}: #{o.subject}"},
:description => :content,
:url => Proc.new {|o| {:controller => 'messages', :action => 'show', :board_id => o.board_id, :id => o.id}}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment