i am tried to use auto increment field for user_id field but it
fails to do it
create_table :users,:id => false,:primary_key => ‘user_id’, :force
=> true do |t|
I strongly advise against doing this, your life will be much simpler
if you stick with the Rails conventions and have id as the primary
key.
The one reason for doing it is to use Rails with a legacy db, in which
case you do not need to create the table of course.