You'll want to add:
```ruby
belongs_to :user
belongs_to :topic
```