14873: Upgrades 'pg' gem & solves an issue related to a new internal table.
[arvados.git] / services / api / db / migrate / 20130415020241_rename_orvos_to_arvados.rb
1 # Copyright (C) The Arvados Authors. All rights reserved.
2 #
3 # SPDX-License-Identifier: AGPL-3.0
4
5 class RenameOrvosToArvados < ActiveRecord::Migration
6   def up
7     Link.update_all("head_kind=replace(head_kind,'orvos','arvados')")
8     Link.update_all("tail_kind=replace(tail_kind,'orvos','arvados')")
9     Log.update_all("object_kind=replace(object_kind,'orvos','arvados')")
10   end
11
12   def down
13     Link.update_all("head_kind=replace(head_kind,'arvados','orvos')")
14     Link.update_all("tail_kind=replace(tail_kind,'arvados','orvos')")
15     Log.update_all("object_kind=replace(object_kind,'arvados','orvos')")
16   end
17 end