Sha256: 4689d6f92a397a19fba0b45e81150d49220fb485ab978592071d9c585b67149c

Contents?: true

Size: 203 Bytes

Versions: 3

Compression:

Stored size: 203 Bytes

Contents

module Blogr
  class Comment < ActiveRecord::Base

    belongs_to :post, class_name: "Blogr::Post"
    belongs_to :user, class_name: "Blogr::User"

    validates_presence_of :post_id, :content

  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
blogr-0.0.8 app/models/blogr/comment.rb
blogr-0.0.7 app/models/blogr/comment.rb
blogr-0.0.6 app/models/blogr/comment.rb