X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/21bf5d79d680f7dc0447b1b5980ad5ce0a4b830c..ba982e48c478ee67ee2fc5766299e1b57cc3ba11:/app/models/message.rb?ds=sidebyside diff --git a/app/models/message.rb b/app/models/message.rb index 4ab129e91..44b1d8745 100644 --- a/app/models/message.rb +++ b/app/models/message.rb @@ -24,7 +24,7 @@ # messages_to_user_id_fkey (to_user_id => users.id) # -class Message < ActiveRecord::Base +class Message < ApplicationRecord belongs_to :sender, :class_name => "User", :foreign_key => :from_user_id belongs_to :recipient, :class_name => "User", :foreign_key => :to_user_id