Is it possible to create primary key without auto_increment flag in ActiveRecord?
auto_increment
I can\'t do
create table :blah, :id
That didn't work for me, but the following did:
create_table(:table_name, :id => false) do |t| t.column :id, 'int(11) PRIMARY KEY' end
Only problem is that you lose it in the schema.rb.