Don't loose the time of the wiki_edits. #468

Contributed by Artem Naluzhnyy.
This commit is contained in:
Felix Schäfer 2011-06-16 21:01:38 +02:00
parent 85c3d38d24
commit 2ceffca3e3
1 changed files with 1 additions and 1 deletions

View File

@ -20,7 +20,7 @@ class MergeWikiVersionsWithJournals < ActiveRecord::Migration
WikiContent::Version.find_by_sql("SELECT * FROM wiki_content_versions").each do |wv|
journal = WikiContentJournal.create!(:journaled_id => wv.wiki_content_id, :user_id => wv.author_id,
:notes => wv.comments, :activity_type => "wiki_edits")
:notes => wv.comments, :created_at => wv.updated_on, :activity_type => "wiki_edits")
changes = {}
changes["compression"] = wv.compression
changes["data"] = wv.data