debian-mirror-gitlab/db/migrate/20200716044023_add_entity_path_to_audit_events.rb
2020-08-09 17:44:08 +05:30

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