X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/4c7323ea090e7570f962d821fa24c3ab20308e1e..415910149bed2eef6ae818b7c059d413934df06e:/services/api/db/migrate/20140325175653_remove_kind_columns.rb?ds=sidebyside diff --git a/services/api/db/migrate/20140325175653_remove_kind_columns.rb b/services/api/db/migrate/20140325175653_remove_kind_columns.rb index d77130d5c2..3303fd9db1 100644 --- a/services/api/db/migrate/20140325175653_remove_kind_columns.rb +++ b/services/api/db/migrate/20140325175653_remove_kind_columns.rb @@ -1,16 +1,20 @@ -class RemoveKindColumns < ActiveRecord::Migration +# Copyright (C) The Arvados Authors. All rights reserved. +# +# SPDX-License-Identifier: AGPL-3.0 + +class RemoveKindColumns < ActiveRecord::Migration[4.2] include CurrentApiClient def up remove_column :links, :head_kind remove_column :links, :tail_kind - remove_column :log, :object_kind + remove_column :logs, :object_kind end def down add_column :links, :head_kind, :string add_column :links, :tail_kind, :string - add_column :log, :object_kind, :string + add_column :logs, :object_kind, :string act_as_system_user do Link.all.each do |l|