From 9dba5315677d4e46c50e6a349bac12f087b8d301 Mon Sep 17 00:00:00 2001 From: Gerhard Schlager Date: Sat, 6 Feb 2016 22:30:24 +0100 Subject: [PATCH] FIX: Remove invalid 'http://' website from profiles --- db/migrate/20160206210202_remove_invalid_websites.rb | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 db/migrate/20160206210202_remove_invalid_websites.rb diff --git a/db/migrate/20160206210202_remove_invalid_websites.rb b/db/migrate/20160206210202_remove_invalid_websites.rb new file mode 100644 index 00000000000..d0ae516ef83 --- /dev/null +++ b/db/migrate/20160206210202_remove_invalid_websites.rb @@ -0,0 +1,5 @@ +class RemoveInvalidWebsites < ActiveRecord::Migration + def change + execute "UPDATE user_profiles SET website = NULL WHERE website = 'http://'" + end +end