...

/

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...
Technical Quiz
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.


1 / 5