2019-07-29 14:55:19 -04:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
class AddIssueIdToVersions < ActiveRecord::Migration[5.2]
|
|
|
|
DOWNTIME = false
|
|
|
|
|
|
|
|
def up
|
2019-09-13 14:06:03 -04:00
|
|
|
# rubocop:disable Migration/AddReference
|
2019-07-29 14:55:19 -04:00
|
|
|
add_reference :design_management_versions, :issue, index: true, foreign_key: { on_delete: :cascade }
|
2019-09-13 14:06:03 -04:00
|
|
|
# rubocop:enable Migration/AddReference
|
2019-07-29 14:55:19 -04:00
|
|
|
end
|
|
|
|
|
|
|
|
def down
|
|
|
|
remove_reference :design_management_versions, :issue
|
|
|
|
end
|
|
|
|
end
|