2020-01-01 13:55:28 +05:30
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
class CreateServiceDeskSettings < ActiveRecord::Migration[5.2]
|
|
|
|
DOWNTIME = false
|
|
|
|
|
2020-05-24 23:13:21 +05:30
|
|
|
# rubocop:disable Migration/PreventStrings
|
2020-01-01 13:55:28 +05:30
|
|
|
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
|
2020-05-24 23:13:21 +05:30
|
|
|
# rubocop:enable Migration/PreventStrings
|
2020-01-01 13:55:28 +05:30
|
|
|
end
|