-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