Creating our user schema

We're pretty comfortable with how our design for our user schema currently looks, so let's start working with this a little bit more and actually create the initial migration for our application! As per Chapter 3Storing and Retrieving Vote Data with Ecto Pages, we'll be working through all of this manually to make sure we get the design and creation of everything set exactly as we're expecting; sometimes working with generators will give you a lot of extra cruft and code that you may not necessarily want as part of the baseline for your application. Let's call our first migration create_users_table and run the Ecto migration generator mix command:

$ mix ecto.gen.migration create_users_table* creating priv/repo/migrations ...

Get Phoenix Web Development now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.