Skip to content

Instantly share code, notes, and snippets.

@domagude

domagude/message.rb

Last active Nov 12, 2017
Embed
What would you like to do?
...
belongs_to :user
belongs_to :conversation,
class_name: 'Private::Conversation',
foreign_key: :conversation_id
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment