I remember the commands I generate because I use them a lot, but I forgot to delete them, so I'll record them.
rails d controller(model)Controller name (model name)
Is it d of delete? It deletes all related files.
rails db:drop
By the way, when creating, rails db: create
To delete only the saved data is rails db: reset
Recommended Posts