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: 83ca5c1e6ec8a524ed3a9fb1032d2af67d6937c0 (plain)
1
2
3
4
5
6
7
8
9
class NullifyBlankTypeOnNotes < ActiveRecord::Migration[4.2]
  include Gitlab::Database::MigrationHelpers

  DOWNTIME = false

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