I'm building a rails API and using curl to test and populate the Users table, and set the admin
column to true
. The default is false
.
curl -XPOST -H "Content-Type: application/json" -d '{ "user": { "email": "test@example.com", "password": "12345678", "admin": "TRUE" } }' http://localhost:3000/api/signup
The command above fails and admin
value is always set to false no matter what. I have also tried true
, 1
, "1"
but nothing works.