← All series

Series contents

Log in to track your progress

  1. 1. Ecto Overview: The Repo Episode
  2. 2. Configuring a new project with Ecto Episode
  3. 3. Creating Ecto Migrations Episode
  4. 4. Schema-less Ecto Queries Episode
  5. 5. Our first Ecto schemas Episode
  6. 6. Some useful Ecto functions Episode
  7. 7. Configuring IEx for working with Ecto Episode
  8. 8. Ecto belongs_to and has_many Episode
  9. 9. Ecto many_to_many and joining through Episode
  10. 10. Naming things in an Ecto project Episode
  11. 11. Ecto changesets: change vs cast Episode
  12. 12. Ecto changesets, validations and constraints Episode
  13. 13. Ecto build_assoc and put_assoc Episode

Naming things in an Ecto project

Let's do a quick revision of the various names used in the project to make them more standard.

  1. Make the database table names plural
  2. ... but make schema and module names singular
  3. Put "create" in the name of a migration that creates an entire new table and put "add" in the name of a migration that adds columns to an existing table.

Note: VS Code's Elixir LS caused the stream for this video to drop some frames after renaming files

Open standalone page ↗

No Comments