docs icon indicating copy to clipboard operation
docs copied to clipboard

Drop all tables

Open fnaysee opened this issue 5 years ago • 2 comments

Is there a command in pop to drop all tables ?

fnaysee avatar Apr 03 '19 08:04 fnaysee

Is buffalo db drop followed by buffalo db create what you're looking for?

Result will be the same.

fdonzello avatar Apr 04 '19 17:04 fdonzello

Hi, I used this command but it says it can not remove the database because other processes are using it, it is while i can remove the database from pg admin. Also i think this is not the right way for recreating tables. Anyway i found this command buffalo db migrate reset and it works but it says it is deprecated. I kept this issue open because i think it is better than removing the whole database and it does the job in one command.

fnaysee avatar Apr 04 '19 17:04 fnaysee