My table name: Records
Fields:
- School_id,
- Admission_id
Association:
class Record < ActiveRecord::Base belongs_to :school
For example So i need to have a made an uniqueness such that admission id should be unique on school alone, different school to have same admission id, but same school cant have same admission id again while creating the record