Skip to content

Instantly share code, notes, and snippets.

@domagude

domagude/user.rb

Created Nov 10, 2017
Embed
What would you like to do?
...
has_many :private_messages, class_name: 'Private::Message'
has_many :private_conversations,
foreign_key: :sender_id,
class_name: 'Private::Conversation'
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment