Files
gitlabhq/db/migrate/20241018072227_add_updated_by_to_custom_fields.rb

10 lines
316 B
Ruby

# frozen_string_literal: true
class AddUpdatedByToCustomFields < Gitlab::Database::Migration[2.2]
milestone '17.6'
def change
add_reference :custom_fields, :updated_by, index: true, foreign_key: { on_delete: :nullify, to_table: :users } # rubocop:disable Migration/AddReference -- table is empty
end
end