X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/31edc7dff6f4305366d0f93d35ba3fb1956bb71f..c24c2e481cc6d27e76274ed4e32668a4690a7788:/app/models/message.rb?ds=inline 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