14873: Adjusts latest API Server changes to be rails5 worthy.
[arvados.git] / services / api / db / migrate / 20141208174553_descriptions_are_strings.rb
index 9c7633f7eb36a941da2cf82dbac62bc5d42a5178..1cd66291203e717dbd4f3474f4c9f7167e3237f8 100644 (file)
@@ -1,11 +1,15 @@
-class DescriptionsAreStrings < ActiveRecord::Migration
+# Copyright (C) The Arvados Authors. All rights reserved.
+#
+# SPDX-License-Identifier: AGPL-3.0
+
+class DescriptionsAreStrings < ActiveRecord::Migration[4.2]
   def tables_with_description_column
     %w{collections groups jobs pipeline_instances pipeline_templates}
   end
 
   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