Dmytro Shteflyuk's Home Dmytro Shteflyuk's Home

thoughts about programming

  • Blog
  • Resume
  • Projects
  • Tag Cloud
  • Library
  • Contact

validates_uniqueness_of and MySQL unique index

Posted by Dmytro Shteflyuk on October 11, 2006 under Ruby & Rails

Yesterday in mailing list of russian RoR group we have discussed following problem. MySQL database has unique index and model has validates_uniqueness_of constraint. Do we need to handle MySQL server exceptions or RoR’s validation will be enough?

Read the rest of entry »

Tagged with active-record, MySQL, Ruby & Rails, validation

Categories

  • ASP.NET (9)
  • Development (6)
  • JavaScript (5)
  • Links (5)
  • Mac OS X (3)
  • PHP (11)
  • Presentations (1)
  • Resume (5)
  • Ruby & Rails (28)
  • WordPress (4)

Archives

  • June 2010 (1)
  • December 2009 (1)
  • November 2009 (1)
  • September 2009 (4)
  • August 2009 (1)
  • July 2009 (3)
  • May 2009 (3)
  • April 2009 (2)
  • January 2009 (1)
  • December 2008 (2)
  • More…

My friends

  • Dmytro on Things
  • Homo-Adminus Blog

Syndication

Entries RSS (Eng)
Comments RSS

Latest Articles

Advanced Capistrano usage
June 23, 2010 21:323 Comments
Submitting a patch to the Open Source project: composite_primary_keys
December 17, 2009 12:28No Comments
My top 7 RSpec best practices
November 25, 2009 18:2227 Comments
Weekly Link Dump #2
September 22, 2009 15:512 Comments
Weekly Link Dump #1
September 14, 2009 11:481 Comment
 

Copyright © 2005 — 2011, Dmytro Shteflyuk