I am trying to create a model in ruby that uses a BIGINT datatype (as opposed to the INT done by :integer).
I have search all over Google, but all I seem to find is “run an SQL statement to alter the table to a BIGINT” – This seems a bit hack-ish to me, so I wanted to know if there was a way to specify a bigint in the ruby system like :big_int or something
Any ideas?
Here is a plug-in that changes the way ActiveRecord interacts with MySQL using the limit parameter and integer columns. It’ll save you from the SQL-statement hackiness.