Add database-level constraint for product name uniqueness (wincent.dev, 7805a54)

The Rails "uniqueness" validation is advisory only and is vulnerable to races, so add a database-level constraint to ensure integrity. (The Rails validation is about UI polish, not integrity.)

Signed-off-by: Greg Hurrell <greg@hurrell.net>

← Add products controller and make it the default (root) route (wincent.dev, e1580bd)
Require product names to be unique (wincent.dev, b023972) →

All snippets