1 class DescriptionsAreStrings < ActiveRecord::Migration
2 def tables_with_description_column
3 %w{collections groups jobs pipeline_instances pipeline_templates}
7 tables_with_description_column.each do |table|
8 change_column table.to_sym, :description, :string, :limit => 2**19
13 tables_with_description_column.each do |table|
14 if table == 'collections'
15 change_column table.to_sym, :description, :string # implicit limit 255
17 change_column table.to_sym, :description, :text