14 lines
308 B
Ruby
14 lines
308 B
Ruby
|
# frozen_string_literal: true
|
||
|
|
||
|
class AddIssueIdToVersions < ActiveRecord::Migration[5.2]
|
||
|
DOWNTIME = false
|
||
|
|
||
|
def up
|
||
|
add_reference :design_management_versions, :issue, index: true, foreign_key: { on_delete: :cascade }
|
||
|
end
|
||
|
|
||
|
def down
|
||
|
remove_reference :design_management_versions, :issue
|
||
|
end
|
||
|
end
|