Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Branch: master
Fetching contributors…

Cannot retrieve contributors at this time

18 lines (16 sloc) 0.411 kB
# == Schema Information
#
# Table name: answers
#
# id :integer(4) not null, primary key
# question_id :integer(4)
# content :string(255)
# created_at :datetime not null
# updated_at :datetime not null
#
class Answer < ActiveRecord::Base
attr_accessible :content
belongs_to :question
has_many :responses, :dependent => :destroy
validates_presence_of :content
end
Jump to Line
Something went wrong with that request. Please try again.