diff options
Diffstat (limited to 'lib/gitlab/database/schema_validation/validators/extra_tables.rb')
-rw-r--r-- | lib/gitlab/database/schema_validation/validators/extra_tables.rb | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/lib/gitlab/database/schema_validation/validators/extra_tables.rb b/lib/gitlab/database/schema_validation/validators/extra_tables.rb deleted file mode 100644 index 99e98eb8f67..00000000000 --- a/lib/gitlab/database/schema_validation/validators/extra_tables.rb +++ /dev/null @@ -1,21 +0,0 @@ -# frozen_string_literal: true - -module Gitlab - module Database - module SchemaValidation - module Validators - class ExtraTables < BaseValidator - ERROR_MESSAGE = "The table %s is present in the database, but not in the structure.sql file" - - def execute - database.tables.filter_map do |database_table| - next if structure_sql.table_exists?(database_table.name) - - build_inconsistency(self.class, nil, database_table) - end - end - end - end - end - end -end |