projects
/
arvados.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch '15522-arvmount-ops-encoding'
[arvados.git]
/
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 d77130d5c2cf3ae477bc729a7fb9ff15de045a2e..3303fd9db160bed31df7da47a289879c62d77932 100644
(file)
--- 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
include CurrentApiClient
def up
remove_column :links, :head_kind
remove_column :links, :tail_kind
- remove_column :log, :object_kind
+ remove_column :log
s
, :object_kind
end
def down
add_column :links, :head_kind, :string
add_column :links, :tail_kind, :string
end
def down
add_column :links, :head_kind, :string
add_column :links, :tail_kind, :string
- add_column :log, :object_kind, :string
+ add_column :log
s
, :object_kind, :string
act_as_system_user do
Link.all.each do |l|
act_as_system_user do
Link.all.each do |l|