People,
I have included the devise gem in an app and it is going OK but I needed
a name field as well as the email so I added it to the migration file:
class DeviseCreateUsers < ActiveRecord::Migration
def change
create_table(:users) do |t|
## Database authenticatable
t.string :name, :null => false, :default => ""
t.string :email, :null => false, :default => ""
.
.
and recreated the DB, the schema.rb:
create_table "users", force: true do |t|
t.string "name", default: "", null: false
t.string "email", default: "", null: false
.
.
confirms that the change looks sensible, however when I add a new user,
I can do it without the user name! - how is that possible?
Any help appreciated!
Thanks,
Phil.
--
Philip Rhoades
GPO Box 3411
Sydney NSW 2001
Australia
E-mail: phil@pricom.com.au
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/065b9bd87fb07c98be71910158089f35%40localhost.
For more options, visit https://groups.google.com/groups/opt_out.
No comments:
Post a Comment