Sha256: 9249206109a285a44152cdaa0d853bb468c81b7d2d05f2babeae9c631529c955

Contents?: true

Size: 258 Bytes

Versions: 1

Compression:

Stored size: 258 Bytes

Contents

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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
conversations-0.0.1 app/models/conversations/message.rb