Answers for "active record dependent destroy"

2

activerecord through

class Doctor < ApplicationRecord
	has_many :patients, through: :consultation
end
Posted by: Guest on November-12-2020
1

active record dependent destroy

has_many :books, dependent: :destroy
Posted by: Guest on November-12-2020

Browse Popular Code Answers by Language