Added Subscription model to send emails
This commit is contained in:
parent
ac25561523
commit
41fc21f7f4
5 changed files with 23 additions and 2 deletions
|
|
@ -20,7 +20,7 @@ class User < ActiveRecord::Base
|
|||
has_many :registrations, dependent: :destroy
|
||||
has_many :votes, dependent: :destroy
|
||||
has_many :voted_events, through: :votes, source: :events
|
||||
|
||||
has_many :subscriptions, dependent: :destroy
|
||||
accepts_nested_attributes_for :roles
|
||||
|
||||
before_create :setup_role
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue