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

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

class CreateNamespaceLdapSettings < Gitlab::Database::Migration[2.1]
  def change
    create_table :namespace_ldap_settings, if_not_exists: true, id: false do |t|
      t.references :namespace, primary_key: true, default: nil,
        type: :bigint, index: false, foreign_key: { on_delete: :cascade }
      t.timestamps_with_timezone null: false
      t.column :sync_last_start_at, :datetime_with_timezone
      t.column :sync_last_update_at, :datetime_with_timezone
      t.column :sync_last_successful_at, :datetime_with_timezone
      t.integer :sync_status, null: false, default: 0, limit: 2
      t.text :sync_error, limit: 255
    end
  end
end