Checks your Ecto schemas and changesets against the live database.
mix ecto.doctorIt exits with status 1 when a finding is at or above --fail-on so it can run in CI as it is.
Flags
--repoor-rpicks the repo. Repeat it for several. Defaults to the app'secto_repos.--onlyruns only these checks, as a comma separated list.--exceptskips these checks.--allreports info level findings too.--formatistext,json,sariforgithub. Defaults totext.--fail-oniserror,warningorinfo. Defaults toerror.--fixwrites migrations for every fix a migration can make. On PostgreSQL indexes are built concurrently and constraints are validated in a later migration.--applyruns only those migrations after you confirm.--no-baselinereports findings the baseline file would leave out.--configreads options from this file. Defaults to.ecto_doctor.exs.
mix ecto.doctor.explain describes every check.