gitlab-org--gitlab-foss/db/migrate/20200716044023_add_entity_p...

22 lines
477 B
Ruby

# frozen_string_literal: true
class AddEntityPathToAuditEvents < ActiveRecord::Migration[6.0]
include Gitlab::Database::MigrationHelpers
DOWNTIME = false
def up
with_lock_retries do
# rubocop:disable Migration/AddLimitToTextColumns
add_column(:audit_events, :entity_path, :text)
# rubocop:enable Migration/AddLimitToTextColumns
end
end
def down
with_lock_retries do
remove_column(:audit_events, :entity_path)
end
end
end