mattvanhorn/BJJLife

View on GitHub
app/models/comment.rb

Summary

Maintainability
A
0 mins
Test Coverage
# == Schema Information
#
# Table name: comments
#
#  id         :integer         not null, primary key
#  post_id    :integer
#  user_id    :integer
#  body       :text
#  created_at :datetime        not null
#  updated_at :datetime        not null
#
# Indexes
#
#  index_comments_on_post_id  (post_id)
#  index_comments_on_user_id  (user_id)
#

class Comment < ActiveRecord::Base
  attr_accessible :body
  belongs_to :post
  belongs_to :user
end