Migrate old moved posts messages in English

This commit is contained in:
Robin Ward 2015-07-31 19:06:19 -04:00
parent 9629f63612
commit 0d9899198f

View file

@ -0,0 +1,6 @@
class MigrateOldMovedPosts < ActiveRecord::Migration
def up
execute "UPDATE posts SET post_type = 3, action_code = 'split_topic' WHERE post_type = 2 AND raw ~* '^I moved [a\\d]+ posts? to a new topic:'"
execute "UPDATE posts SET post_type = 3, action_code = 'split_topic' WHERE post_type = 2 AND raw ~* '^I moved [a\\d]+ posts? to an existing topic:'"
end
end