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

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

class CreateContentBlockedStates < Gitlab::Database::Migration[1.0]
  def change
    create_table :content_blocked_states, comment: 'JiHu-specific table' do |t|
      t.timestamps_with_timezone null: false
      t.binary :commit_sha, null: false
      t.binary :blob_sha, null: false
      t.text :path, null: false, limit: 2048
      t.text :container_identifier, null: false, limit: 255

      t.index [:container_identifier, :commit_sha, :path], name: 'index_content_blocked_states_on_container_id_commit_sha_path', unique: true
    end
  end
end