-1
, bunu scope
Not çalışma aşağıdaki yazdım Raylar is_deleted tüm kayıt yanlıştır yaVEYA Durum benim <code>prescription.rb</code> modelde
, bunu scope
Not çalışma aşağıdaki yazdım Raylar is_deleted tüm kayıt yanlıştır yaVEYA Durum benim <code>prescription.rb</code> modelde
nil bu deneyin:
scope :undeleted_prescriptions, -> { includes(:patient_prescriptions).where(patient_prescriptions: { is_deleted: [false,nil] })}