I am using Rails 5 API with devise. I have a User model. Schema looks like this.
User
create_table \"users\", force: :cascade do |t| t.string \
Try attributes method
attributes
User.first.attributes