blob: d297464a01c3ad568291a4e152c5c4b08e20e90a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
# frozen_string_literal: true
module Gitlab
module Schema
module Validation
module Validators
class ExtraTables < Base
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
|