How to turn off auto_increment in Rails Active Record

Posted by Darth on Stack Overflow See other posts from Stack Overflow or by Darth
Published on 2009-10-18T16:28:13Z Indexed on 2010/06/15 23:12 UTC
Read the original article Hit count: 332

Is it possible to create primary key without auto_increment flag in ActiveRecord?

I can't do

create table :blah, :id => false

because I want to have primary key index on the column. I looked up documentation but didn't find anything useful.

Is it possible to create primary key without auto_increment?

© Stack Overflow or respective owner

Related posts about ruby-on-rails

Related posts about activerecord