Change bigint id column to monkeypatching-friendly syntax
[rails.git] / lib / migrate.rb
index 26e95a496264142d2414e63a199c300942142154..68ff04615b48b4a3eee3cd90aaa3fd39c1da8d34 100644 (file)
@@ -44,6 +44,7 @@ module ActiveRecord
         types = old_native_database_types
         types[:bigint] = { :name => "bigint", :limit => 20 }
         types[:double] = { :name => "double" }
+        types[:bigint_pk] = { :name => "bigint(20) DEFAULT NULL auto_increment PRIMARY KEY" }
         types
       end