Skip to content

Try isbn validation uniqueness with db index and allow_nill

  • Create an index in postgresql
  • Use allow_nil on isbn validation
  • Create a callback on create and update which set isbn to nil if it is blank
  • Make all blank isbn to nil
  • Deploy the patch
Edited by Justin !
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information