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 O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.