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

20160722221922_nullify_blank_type_on_notes.rb « migrate « db - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: c4b78e8e15cf57161b77cb1486c1720f516ffbe9 (plain)
1
2
3
4
5
6
7
8
9
class NullifyBlankTypeOnNotes < ActiveRecord::Migration
  include Gitlab::Database::MigrationHelpers

  DOWNTIME = false

  def up
    execute "UPDATE notes SET type = NULL WHERE type = ''"
  end
end