Store message receivers in a new table instead of in a serializied value

This commit is contained in:
Patrick Gansterer 2019-10-29 01:19:05 +01:00
parent 1cb7f888b7
commit f8148e7d30
7 changed files with 96 additions and 35 deletions

View file

@ -0,0 +1,6 @@
class MessageRecipient < ActiveRecord::Base
belongs_to :message
belongs_to :user
enum email_state: [:pending, :sent, :skipped]
end