Can you nullify the foreign key on a has_many, belongs_to with multiple foreign keys during the dependent: :nullify callback?

前端 未结 0 411
天涯浪人
天涯浪人 2020-12-29 05:06

I have a User class like this:

class User < ApplicationRecord
  has_many :payments
end

and a Paymen

相关标签:
回答
  • 消灭零回复
提交回复
热议问题