• Wincent
    Menu
  • Blog
  • Wiki
  • Snippets
  • Tags
  • Search

Add database-level constraints for uniqueness (wincent.dev, 163821f)

Created 1/26/2008, updated 3/12/2024
  • snippets

Seeing as validates_uniqueness_of is vulnerable to race conditions, it is really only a bit of UI-level polish; at the level of database integrity we have to rely on real constraints.

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

← In-place editing for translations (wincent.dev, 022faf3)
Flesh out locales controller (wincent.dev, 9bd9613) →

All snippets

Site
  • About
  • Blog
  • Wiki
  • Snippets
  • Tags
  • Search
External
  • GitHub
  • Twitter
  • YouTube
  • Facebook
  • LinkedIn
Colophon

Made by Greg Hurrell with Rust (with help from Git and Neovim).