discourse/db/migrate/20160206210202_remove_invalid_websites.rb

6 lines
157 B
Ruby
Raw Normal View History

2016-04-01 05:33:25 +08:00
class RemoveInvalidWebsites < ActiveRecord::Migration
def change
execute "UPDATE user_profiles SET website = NULL WHERE website = 'http://'"
end
end