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