debian-mirror-gitlab/db/migrate/20160722221922_nullify_blank_type_on_notes.rb
2019-02-15 15:39:39 +05:30

10 lines
205 B
Ruby

class NullifyBlankTypeOnNotes < ActiveRecord::Migration[4.2]
include Gitlab::Database::MigrationHelpers
DOWNTIME = false
def up
execute "UPDATE notes SET type = NULL WHERE type = ''"
end
end