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: 561eddf69e0589cb4aeaa3f74382be903edb444b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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