Skip to content

Commit 16bfc66

Browse files
move touch option on message model, remove optional on record model
1 parent 3687747 commit 16bfc66

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spec/models/record.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@
33
class Record
44
include Mongoid::Document
55

6-
belongs_to :user, inverse_of: :record, touch: :record_updated_at, optional: true
6+
belongs_to :user, inverse_of: :record, touch: :record_updated_at
77
end

0 commit comments

Comments
 (0)