X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/fb3c02b38a24cda422de95f2f8b49002b841cc72..d9cae745245c22e6b4acb0d2ab3f4f3c2afa81fa:/services/api/db/migrate/20130226170000_remove_native_target_from_links.rb diff --git a/services/api/db/migrate/20130226170000_remove_native_target_from_links.rb b/services/api/db/migrate/20130226170000_remove_native_target_from_links.rb index d6fa0a5efd..8c8779d401 100644 --- a/services/api/db/migrate/20130226170000_remove_native_target_from_links.rb +++ b/services/api/db/migrate/20130226170000_remove_native_target_from_links.rb @@ -1,10 +1,14 @@ -class RemoveNativeTargetFromLinks < ActiveRecord::Migration +# Copyright (C) The Arvados Authors. All rights reserved. +# +# SPDX-License-Identifier: AGPL-3.0 + +class RemoveNativeTargetFromLinks < ActiveRecord::Migration[4.2] def up remove_column :links, :native_target_id remove_column :links, :native_target_type end def down - remove_column :links, :native_target_id, :integer - remove_column :links, :native_target_type, :string + add_column :links, :native_target_id, :integer + add_column :links, :native_target_type, :string end end