summaryrefslogtreecommitdiff
path: root/db/migrate/20211216220939_add_group_crm_settings.rb
blob: e931aa3709bef45500b44888030f01c4a4f8f253 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
# frozen_string_literal: true

class AddGroupCrmSettings < Gitlab::Database::Migration[1.0]
  enable_lock_retries!

  def change
    create_table :group_crm_settings, id: false do |t|
      t.references :group, primary_key: true, foreign_key: { to_table: :namespaces, on_delete: :cascade }
      t.timestamps_with_timezone
      t.boolean :enabled, null: false, default: false
    end
  end
end