gitlab-org--gitlab-foss/lib/gitlab/database/partitioning_migration_helpers/partitioned_foreign_key.rb

14 lines
313 B
Ruby

# frozen_string_literal: true
module Gitlab
module Database
module PartitioningMigrationHelpers
class PartitionedForeignKey < ApplicationRecord
validates_with PartitionedForeignKeyValidator
scope :by_referenced_table, ->(table) { where(to_table: table) }
end
end
end
end