Answers for "how to delete data in console destroy all"

0

ruby rails delete all of a model in console

user.destroy #For a single record
user.agents.destroy_all #For a collection
Posted by: Guest on December-27-2019

Code answers related to "how to delete data in console destroy all"

Browse Popular Code Answers by Language