Welcome to mirror list, hosted at ThFree Co, Russian Federation.

20230307132729_create_schema_inconsistencies.rb « migrate « db - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 4891cc6ab7bdd2ca74946c9799fc9b4e4ec09ac1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# frozen_string_literal: true

class CreateSchemaInconsistencies < Gitlab::Database::Migration[2.1]
  enable_lock_retries!

  def change
    create_table :schema_inconsistencies do |t|
      t.references :issue, index: true, null: false, foreign_key: { on_delete: :cascade }
      t.timestamps_with_timezone null: false
      t.text :object_name, null: false, limit: 63
      t.text :table_name, null: false, limit: 63
      t.text :valitador_name, null: false, limit: 63
    end
  end
end