class RemoveNilTypeServices < ActiveRecord::Migration[4.2]
DOWNTIME = false
def up
execute <<-SQL
DELETE FROM services WHERE type IS NULL OR type = '';
SQL
end
def down