gitlab-org--gitlab-foss/db/migrate/20170421102337_remove_nil_t...

13 lines
203 B
Ruby

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
end
end