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)
- Modify an existing context or create a new context
- Create a new schema
- Modify existing schemas that are affected by this addition
- Tie...