Answers for "rails console model destroy all"

0

rails console destroy all

user.destroy #For a single record
user.agents.destroy_all #For a collection
Posted by: Guest on August-04-2021

Browse Popular Code Answers by Language