Sha256: 18e95039b3af032b8f6b9a94f817e4f8ce8106fb162dc7c52596c7661d9462e8

Contents?: true

Size: 202 Bytes

Versions: 5

Compression:

Stored size: 202 Bytes

Contents

class Comment < ActiveRecord::Base

  # Relationships
  belongs_to :post, :dependent => :destroy, :foreign_key => :post_id

  # Constraints
  validates_numericality_of :post_id, {:allow_nil=>true}
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
legacy_data-0.2.1 examples/generated/blog_mysql/comment.rb
legacy_data-0.2.0 examples/generated/blog_mysql/comment.rb
legacy_data-0.1.12 examples/generated/blog_mysql/comment.rb
legacy_data-0.1.11 examples/generated/blog_mysql/comment.rb
legacy_data-0.1.10 examples/generated/blog_mysql/comment.rb