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 [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.