I would like to create a bigint (or string or whatever that is not int) typed primary key field under Rails 3.
bigint
string
int
I have a given
I had the same problem. I think the easiest way for a table
accounts id bigint primary key name char
is
create_table :accounts do |t| t.string :name end change_column :accounts, :id , "bigint NOT NULL AUTO_INCREMENT"