Store message receivers in a new table instead of in a serializied value
This commit is contained in:
parent
1cb7f888b7
commit
f8148e7d30
7 changed files with 96 additions and 35 deletions
6
plugins/messages/app/models/message_recipient.rb
Normal file
6
plugins/messages/app/models/message_recipient.rb
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
class MessageRecipient < ActiveRecord::Base
|
||||
belongs_to :message
|
||||
belongs_to :user
|
||||
|
||||
enum email_state: [:pending, :sent, :skipped]
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue