Skip to content

Commit 0e046a2

Browse files
committed
Message.has_many_attached :attachments
1 parent a73901e commit 0e046a2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

app/models/message.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ class Message < ApplicationRecord
1010
# https://blade.ruby-lang.org/ruby-talk/410000 is not.
1111
self.skip_time_zone_conversion_for_attributes = [:published_at]
1212

13+
has_many_attached :attachments
14+
1315
attr_accessor :children
1416

1517
class << self

0 commit comments

Comments
 (0)