diff --git a/db/migrate/20160206210202_remove_invalid_websites.rb b/db/migrate/20160206210202_remove_invalid_websites.rb new file mode 100644 index 000000000..d0ae516ef --- /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