|
|
@ -53,7 +53,7 @@ class Message < ActiveRecord::Base
|
|
|
|
has_many :tidings, :as => :container , :dependent => :destroy
|
|
|
|
has_many :tidings, :as => :container , :dependent => :destroy
|
|
|
|
|
|
|
|
|
|
|
|
belongs_to :reply, :class_name => 'Message', :foreign_key => 'reply_id'
|
|
|
|
belongs_to :reply, :class_name => 'Message', :foreign_key => 'reply_id'
|
|
|
|
has_one :message_detail, :dependent => :destroy
|
|
|
|
#has_one :message_detail, :dependent => :destroy
|
|
|
|
|
|
|
|
|
|
|
|
#转发表
|
|
|
|
#转发表
|
|
|
|
has_many :forwards, :as => :from, :dependent => :destroy
|
|
|
|
has_many :forwards, :as => :from, :dependent => :destroy
|
|
|
|