Looking at the error, it seems like there is no name
attribute in users
table.
While creating a user record you are passing the non-existing attribute and getting the error.
To resolve this issue,
Either add a column to users table called name
By:
Generating a migration
rails generate migration AddNameToUsers name:string
Running
rake db:migrate
Or
Remove the name
attribute and value from list of arguments passed to User.create
method.