mirror of
https://github.com/discourse/discourse.git
synced 2025-02-06 03:18:23 +00:00
FIX: Bug with migrating old embeddedable hosts with http://
This commit is contained in:
parent
d45ff65ee2
commit
d418c4cfc0
5
db/migrate/20150822141540_fix_migrated_hosts.rb
Normal file
5
db/migrate/20150822141540_fix_migrated_hosts.rb
Normal file
@ -0,0 +1,5 @@
|
||||
class FixMigratedHosts < ActiveRecord::Migration
|
||||
def up
|
||||
execute "UPDATE embeddable_hosts SET host = regexp_replace(host, '^https?:\/\/', '', 'i')"
|
||||
end
|
||||
end
|
Loading…
x
Reference in New Issue
Block a user