Welcome to mirror list, hosted at ThFree Co, Russian Federation.

20170421102337_remove_nil_type_services.rb « migrate « db - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: b835b9c6ed99242fbc15dcb01baf1c5ca1ee06df (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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