debian-mirror-gitlab/db/migrate/20170421102337_remove_nil_type_services.rb
2017-08-17 22:00:37 +05:30

13 lines
198 B
Ruby

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