Skip to content

Commit db05f21

Browse files
dependent delete (#75)
1 parent 4d552ae commit db05f21

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/models/assistant.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
class Assistant < ApplicationRecord
2-
has_many :chats
2+
has_many :chats, dependent: :destroy
33
belongs_to :user
44

55
enum status: { development: 0, ready: 1 }

0 commit comments

Comments
 (0)