1 # Copyright (C) The Arvados Authors. All rights reserved.
3 # SPDX-License-Identifier: AGPL-3.0
5 class DescriptionsAreStrings < ActiveRecord::Migration[4.2]
6 def tables_with_description_column
7 %w{collections groups jobs pipeline_instances pipeline_templates}
11 tables_with_description_column.each do |table|
12 change_column table.to_sym, :description, :string, :limit => 2**19
17 tables_with_description_column.each do |table|
18 if table == 'collections'
19 change_column table.to_sym, :description, :string # implicit limit 255
21 change_column table.to_sym, :description, :text