Use destructive method in background job
Instead of using model.create, use model.create! so that we can catch the error later.
Written by Warut Surapat
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Rails
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#