retrospring/app/models/answer.rb

7 lines
162 B
Ruby
Raw Normal View History

2014-10-28 06:36:38 +01:00
class Answer < ActiveRecord::Base
belongs_to :user
belongs_to :question
2014-11-30 19:43:22 +01:00
has_many :comments, dependent: :destroy
has_many :smiles, dependent: :destroy
2014-10-28 06:36:38 +01:00
end