debian-mirror-gitlab/db/migrate/20170421102337_remove_nil_type_services.rb
2019-02-15 15:39:39 +05:30

12 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