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

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

class CreateElasticGroupIndexStatuses < Gitlab::Database::Migration[2.1]
  def change
    create_table :elastic_group_index_statuses, id: false do |t|
      t.references :namespace,
                   primary_key: true,
                   foreign_key: { on_delete: :cascade },
                   index: false,
                   default: nil

      t.timestamps_with_timezone null: false
      t.datetime_with_timezone :wiki_indexed_at

      t.binary :last_wiki_commit
    end
  end
end