kaiho/db/migrate/20180805081706_change_reference_to_version.rb
2018-08-05 12:37:35 +02:00

8 lines
247 B
Ruby

class ChangeReferenceToVersion < ActiveRecord::Migration[5.2]
def change
remove_reference :versions, :software, index: true, foreign_key: true
change_table :versions do |t|
t.references :branch, foreign_key: true
end
end
end