mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-23 15:48:43 -05:00
FIX: Bug with migrating old embeddedable hosts with http://
This commit is contained in:
parent
d45ff65ee2
commit
d418c4cfc0
1 changed files with 5 additions and 0 deletions
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…
Reference in a new issue