FIX: Remove google+ from share_links site setting

Follow-up to 2748822576
This commit is contained in:
Gerhard Schlager 2019-01-10 21:31:20 +01:00
parent 0744e84604
commit f43345b75a

View File

@ -0,0 +1,13 @@
class RemoveGooglePlusFromShareLinksSiteSetting < ActiveRecord::Migration[5.2]
def up
execute <<~SQL
UPDATE site_settings
SET value = array_to_string(array_remove(regexp_split_to_array(value, '\\|'), 'google+'), '|')
WHERE name = 'share_links'
SQL
end
def down
raise ActiveRecord::IrreversibleMigration
end
end