views:

1455

answers:

1

Since Rails 2.1, if you define a new column in a migration with the type set to :integer and the :limit set to 5 or more, the column actually created in your MySQL database will be of type BigInt. That's perfect.

But I cannot figure out how to create a table with a BigInt primary key.

Any clues?

+1  A: 

I just stumbled upon this plugin: it seems to answer this very question.

MiniQuark
@warning, broken link.
mansu
@mansu => tx, link is fixed
MiniQuark