X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/4c7323ea090e7570f962d821fa24c3ab20308e1e..fd6df03fd625fe0f9126205ab324df8533fdcc79:/services/api/db/migrate/20140325175653_remove_kind_columns.rb diff --git a/services/api/db/migrate/20140325175653_remove_kind_columns.rb b/services/api/db/migrate/20140325175653_remove_kind_columns.rb index d77130d5c2..b4085ba92e 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 @@ +# Copyright (C) The Arvados Authors. All rights reserved. +# +# SPDX-License-Identifier: AGPL-3.0 + class RemoveKindColumns < ActiveRecord::Migration 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|