gitlab-org--gitlab-foss/db/migrate/20191105134413_create_service_desk_settings.rb

21 lines
561 B
Ruby
Raw Normal View History

# frozen_string_literal: true
class CreateServiceDeskSettings < ActiveRecord::Migration[5.2]
DOWNTIME = false
# rubocop:disable Migration/PreventStrings
def change
create_table :service_desk_settings, id: false do |t|
t.references :project,
primary_key: true,
default: nil,
null: false,
index: false,
foreign_key: { on_delete: :cascade }
t.string :issue_template_key, limit: 255
end
end
# rubocop:enable Migration/PreventStrings
end