I would like to create bigint (or string or something else, not int )), the typed primary key field under Rails 3.
I have a given data structure, for example:
things ------ id bigint primary_key name char(32)
The approach I'm trying to click is:
create_table :things, :id => false do |t|
The column type will be correct, but the primary key parameter will not be present in sqlite3, and I suspect this also applies to MySQL.
ruby-on-rails ruby-on-rails-3 bigint primary-key
Notinlist
source share