W3cubDocs

/Phoenix

mix ecto.drop

Drop the storage for the given repository.

The repositories to create are the ones specified under the :ecto_repos option in the current app configuration. However, if the -r option is given, it replaces the :ecto_repos config.

Since Ecto tasks can only be executed once, if you need to create multiple repositories, set :ecto_repos accordingly or pass the -r flag multiple times.

Examples

mix ecto.drop
mix ecto.drop -r Custom.Repo

Command line options

  • -r, --repo - the repo to drop
  • --no-compile - do not compile before stopping
  • --force - do not ask for confirmation

© 2012 Plataformatec
Licensed under the Apache License, Version 2.0.
https://hexdocs.pm/ecto/Mix.Tasks.Ecto.Drop.html