4. Going live, and the first bad data · Done when

Done when

  • \d users and \d posts list your NOT NULL columns, defaults, and unique constraints.
  • Every bad insert from the story fails, and you can name the constraint in each error message.
  • You can answer: the app already validates the signup form. Why enforce UNIQUE in the database as well?