Class: Gitlab::Database::PartitioningMigrationHelpers::PartitionedForeignKeyValidator

Inherits:
ActiveModel::Validator
  • Object
show all
Defined in:
lib/gitlab/database/partitioning_migration_helpers/partitioned_foreign_key_validator.rb

Instance Method Summary collapse

Instance Method Details

#validate(record) ⇒ Object


7
8
9
10
# File 'lib/gitlab/database/partitioning_migration_helpers/partitioned_foreign_key_validator.rb', line 7

def validate(record)
  validate_key_part(record, :from_table, :from_column)
  validate_key_part(record, :to_table, :to_column)
end