2019-08-07 18:40:36 +00:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
class AddColumnForSelfMonitoringProjectId < ActiveRecord::Migration[5.2]
|
|
|
|
DOWNTIME = false
|
|
|
|
|
|
|
|
def change
|
2019-09-13 18:06:03 +00:00
|
|
|
# rubocop:disable Migration/AddReference
|
2019-08-07 18:40:36 +00:00
|
|
|
add_reference(
|
|
|
|
:application_settings,
|
|
|
|
:instance_administration_project,
|
|
|
|
index: { name: 'index_applicationsettings_on_instance_administration_project_id' },
|
|
|
|
foreign_key: { to_table: :projects, on_delete: :nullify }
|
|
|
|
)
|
2019-09-13 18:06:03 +00:00
|
|
|
# rubocop:enable Migration/AddReference
|
2019-08-07 18:40:36 +00:00
|
|
|
end
|
|
|
|
end
|