Browse Source

Include services on user

Chris Oliver 6 years ago
parent
commit
979f17a566
1 changed files with 3 additions and 2 deletions
  1. 3 2
      app/models/user.rb

+ 3 - 2
app/models/user.rb

@@ -1,10 +1,11 @@
 class User < ApplicationRecord
-  has_many :notifications, foreign_key: :recipient_id
-  
   # Include default devise modules. Others available are:
   # :confirmable, :lockable, :timeoutable and :omniauthable
   devise :masqueradable, :database_authenticatable, :registerable, :recoverable, :rememberable, :trackable, :validatable, :omniauthable
 
+  has_many :notifications, foreign_key: :recipient_id
+  has_many :services
+
   validates :first_name, :last_name, presence: true
 
   def name