Answer the question
In order to leave comments, you need to log in
What are the pitfalls of using foreign keys in Rails (postgres)?
There is a worker that does long calculations and in the process of its work creates new records in the database (creates mails), but in the process of creating mails, the mail_group to which they belong can be deleted.
class Mail
belongs_to :mail_group
end
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question