FIX: Bug with migrating old embeddedable hosts with http://

This commit is contained in:
Robin Ward 2015-08-22 10:20:20 -04:00
parent d45ff65ee2
commit d418c4cfc0

View file

@ -0,0 +1,5 @@
class FixMigratedHosts < ActiveRecord::Migration
def up
execute "UPDATE embeddable_hosts SET host = regexp_replace(host, '^https?:\/\/', '', 'i')"
end
end