The following code will create a bigint type of field
t.integer :foo, :limit => 8 t.column :foo2, :integer, :limit => 8
Limit are required attention should be between 5 to 8, but not too much. If you want to bigint, then the direct use: limit => 8
This way the benefits are having to go directly Writing bigint (bound to mysql) a
References:








Responses to “How to create a Rails migration mission bigint types of field”