In Rails 3.2, I have this syntax:
validates_uniqueness_of :sport_name, :scope => :sports_org_id
This is now deprecated in rails 4, but I cannot understand the new syntax. I want to check the availability and uniqueness of a data field.
ruby-on-rails
markhorrocks
source share