summaryrefslogtreecommitdiff
path: root/lib/gitlab/database/schema_validation/schema_inconsistency.rb
blob: 6f50603e784c4e135915629971ff9afbebd6877e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# frozen_string_literal: true

module Gitlab
  module Database
    module SchemaValidation
      class SchemaInconsistency < ApplicationRecord
        self.table_name = :schema_inconsistencies

        belongs_to :issue

        validates :object_name, :valitador_name, :table_name, presence: true
      end
    end
  end
end