mirror of
https://github.com/discourse/discourse.git
synced 2025-09-07 12:02:53 +08:00
FIX: Remove invalid 'http://' website from profiles
This commit is contained in:
parent
9a83100529
commit
9dba531567
1 changed files with 5 additions and 0 deletions
5
db/migrate/20160206210202_remove_invalid_websites.rb
Normal file
5
db/migrate/20160206210202_remove_invalid_websites.rb
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
class RemoveInvalidWebsites < ActiveRecord::Migration
|
||||||
|
def change
|
||||||
|
execute "UPDATE user_profiles SET website = NULL WHERE website = 'http://'"
|
||||||
|
end
|
||||||
|
end
|
Loading…
Add table
Add a link
Reference in a new issue