summaryrefslogtreecommitdiff
path: root/db/migrate/20160722221922_nullify_blank_type_on_notes.rb
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