From 2ceffca3e3e26620969b9f090c1ee89dfa46b9a6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Felix=20Sch=C3=A4fer?= Date: Thu, 16 Jun 2011 21:01:38 +0200 Subject: [PATCH] Don't loose the time of the wiki_edits. #468 Contributed by Artem Naluzhnyy. --- db/migrate/20100804112053_merge_wiki_versions_with_journals.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/db/migrate/20100804112053_merge_wiki_versions_with_journals.rb b/db/migrate/20100804112053_merge_wiki_versions_with_journals.rb index 8d13d13e..3e7d6517 100644 --- a/db/migrate/20100804112053_merge_wiki_versions_with_journals.rb +++ b/db/migrate/20100804112053_merge_wiki_versions_with_journals.rb @@ -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