X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/49030c3161523bc427e0aaa9d3edb517fc4c296c..23721458d7ec8c44c4b54f45eb7d2a4e6d7cdce1:/services/api/db/migrate/20141208174553_descriptions_are_strings.rb diff --git a/services/api/db/migrate/20141208174553_descriptions_are_strings.rb b/services/api/db/migrate/20141208174553_descriptions_are_strings.rb index b33a49a446..412b427c72 100644 --- a/services/api/db/migrate/20141208174553_descriptions_are_strings.rb +++ b/services/api/db/migrate/20141208174553_descriptions_are_strings.rb @@ -5,13 +5,15 @@ class DescriptionsAreStrings < ActiveRecord::Migration def up tables_with_description_column.each do |table| - change_column table.to_sym, :description, :string, :limit => 10000 + change_column table.to_sym, :description, :string, :limit => 2**19 end end def down tables_with_description_column.each do |table| - if table != 'collections' + if table == 'collections' + change_column table.to_sym, :description, :string # implicit limit 255 + else change_column table.to_sym, :description, :text end end