FIX: Bug with migrating old embeddedable hosts with `http://`
This commit is contained in:
parent
d45ff65ee2
commit
d418c4cfc0
|
@ -0,0 +1,5 @@
|
|||
class FixMigratedHosts < ActiveRecord::Migration
|
||||
def up
|
||||
execute "UPDATE embeddable_hosts SET host = regexp_replace(host, '^https?:\/\/', '', 'i')"
|
||||
end
|
||||
end
|
Loading…
Reference in New Issue