Adding user accounts

As mentioned in the introduction for this chapter, we want to add user accounts to our polling application to facilitate linking polls to a user and giving a user ways to control access and information concerning each of the polls that they create. The process of actually tying all of this into our application is going to involve quite a few steps in the long run. We need to do the following:

  • Figure out what the database table should look like
  • Figure out what the code representation should look like
  • Determine if the addition of this table should introduce changes into other models or schemas
  • Write the migration code that introduces the new table
  • Write the migration code that modifies existing tables and data (if necessary) ...

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.