Exercise: Create Changesets in Ecto

Practice how to create changesets in Ecto in this challenge.

We'll cover the following

Problem statement

We need to add a users table to our database. This is where we’ll store users who are allowed to make changes to our music database. To help us import new user records, we need to write a changeset to validate incoming data and save it to our new table.

Coding challenge

The schema for our new model has the following piece of code. For now, we won’t worry about having encrypted passwords.

Get hands-on with 1200+ tech skills courses.