Don't loose the time of the wiki_edits. #468
Contributed by Artem Naluzhnyy.
This commit is contained in:
parent
85c3d38d24
commit
2ceffca3e3
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue