debian-mirror-gitlab/db/migrate/20160722221922_nullify_blank_type_on_notes.rb

10 lines
205 B
Ruby
Raw Normal View History

2019-02-15 15:39:39 +05:30
class NullifyBlankTypeOnNotes < ActiveRecord::Migration[4.2]
2016-08-24 12:49:21 +05:30
include Gitlab::Database::MigrationHelpers
DOWNTIME = false
def up
execute "UPDATE notes SET type = NULL WHERE type = ''"
end
end