retrospring/app/models/answer.rb
2014-11-30 19:43:22 +01:00

6 lines
162 B
Ruby

class Answer < ActiveRecord::Base
belongs_to :user
belongs_to :question
has_many :comments, dependent: :destroy
has_many :smiles, dependent: :destroy
end