Sha256: 209e0abafbc8e9450e31d67ca8b8eea9490ae7cdd13bba32e266324e0968435d

Contents?: true

Size: 265 Bytes

Versions: 3

Compression:

Stored size: 265 Bytes

Contents

module Conversations
  class Message < ActiveRecord::Base
    attr_accessible :user_id, :conversation_id, :body, :user
  
    belongs_to :user
    belongs_to :conversation
  
    validates :user_id, :presence => true
    validates :body, :presence => true
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
conversations-0.0.2.2 app/models/conversations/message.rb
conversations-0.0.2.1 app/models/conversations/message.rb
conversations-0.0.2 app/models/conversations/message.rb