vasconsaurus / produce_in_season

0 stars 0 forks source link

Add unique indices #25

Closed vasconsaurus closed 2 years ago

vasconsaurus commented 2 years ago

https://github.com/vasconsaurus/produce_in_season/pull/23#discussion_r894864217

  1. We remove the uniqueness validation
  2. We add a migration to include unique indices:

add_index :produce_items, :name, unique: true