I am new to ruby on rails.I want set the unquie on two fields.
Means in one model three fileds are there.
I want set the unquie on C-Id,Q-Id combindely on the model validations
Can u give me advice?
I tryed with statemwnt validates_uniqueness_of [:c_id, :qid]
But it now giving the proper results