debian-mirror-gitlab/db/migrate/20160722221922_nullify_blank_type_on_notes.rb
2016-08-24 12:49:21 +05:30

10 lines
200 B
Ruby

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