app/models/message.rb
3633033b
 class Message
 	include Mongoid::Document
     include Mongoid::Timestamps::Created
 
     field :message, type: String
     field :from, type: String
 
     embedded_in :history
 end