FIX: Automatically add like-count to post menu

This commit is contained in:
Kane York 2015-07-08 19:21:59 -07:00
parent 160ee67620
commit 6f03aa164f

View file

@ -0,0 +1,10 @@
class AddLikeCountToPostMenu < ActiveRecord::Migration
def up
execute <<SQL
UPDATE site_settings
SET value = replace(value, 'like', 'like-count|like')
WHERE name = 'post_menu'
AND value NOT LIKE '%like-count%'
SQL
end
end