I'm starting to play with Ecto trying to understand it. As expected I messed up (with the user model) and I get an error while running a migration:
(Postgrex.Error) ERROR (duplicate_table): relation "users" already exists
Now, I want to clean the database using the shell/PgAdmin III so that I can then fix my model and run migrations again. I've set up PgAdmin but I'm not able to see any "user" table... What's the best way of doing this (either with Ecto, PostgreSQL shell or PgAdmin)?
drop owned by foobar
is the quickest method (wherefoobar
is the name of the Postgres user owning everything) – a_horse_with_no_name