debian-mirror-gitlab/db/migrate/20211216220939_add_group_crm_settings.rb
2022-03-02 08:16:31 +05:30

13 lines
395 B
Ruby

# 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