hi,



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|
t.integer :user_id,:auto_increment => true, :null => false
t.string :name
t.string :email
t.timestamps
end


is there any syntax to do auto increment in rails 3 ?

thanks,
-Pab

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

Search Discussions

Discussion Posts

Follow ups

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 1 of 2 | next ›
Discussion Overview
grouprubyonrails-talk @
categoriesrubyonrails
postedOct 17, '11 at 12:05p
activeOct 17, '11 at 12:22p
posts2
users2
websiterubyonrails.org
irc#RubyOnRails

2 users in discussion

Colin Law: 1 post Pab: 1 post

People

Translate

site design / logo © 2021 Grokbase