Closed JarriqTheTechie closed 6 months ago
made a small change here if you just want to pull 1 column by not needing to pass a list
User.first_or_create(
{"email": "abc@123.com"},
{"email": "abc@123.com", "password": "password123"}
).only("email")
and i added tests
Added
Usage
this would return the following
In addition to the above usage, you can also use this as a way to remap data. We can alias attributes so that the results can match its destination. Example usage
this would return the following