phoenix-framework Ecto models usage in phoenix Migrations of ecto model

Help us to keep this website almost Ad Free! It takes only 10 seconds of your time:
> Step 1: Go view our video on YouTube: EF Core Bulk Extensions
> Step 2: And Like the video. BONUS: You can also share it!

Example

When you run mix phoenix.gen.html or mix phoenix.gen.json from command line, migrations are created in priv -> repo -> migrations in your project folder.

To run migrations type mix ecto.migrate.

To generate migrations for your project mix ecto.gen migrations <model_name>

To generate migrations for a different repository than default one run mix ecto.gen migrations <model_name> -r <repo_name>



Got any phoenix-framework Question?