...

/

Quiz: Connect Tables to Elixir Structs with Schema

Quiz: Connect Tables to Elixir Structs with Schema

Quiz yourself on connecting tables to Elixir structs with schema.

We'll cover the following...
1

Does Ecto require us to have a column named id as a primary key in our tables?

A)

Yes

B)

No, but we need an extra hex package to change it.

C)

No, we can indicate that any field is a primary key by adding primary_key: true to the field call.

D)

No, it will work with any primary key column without any code changes.

Question 1 of 50 attempted
Access this course and 1400+ top-rated courses and projects.