Missing association.

This commit is contained in:
Guo Xiang Tan 2017-04-07 17:05:58 +08:00
parent 96a070d73d
commit fad04aad6c
1 changed files with 1 additions and 0 deletions

View File

@ -3,6 +3,7 @@ class TopicStatusUpdate < ActiveRecord::Base
belongs_to :user
belongs_to :topic
belongs_to :category
validates :user_id, presence: true
validates :topic_id, presence: true