Sha256: e4df32ad57fd701e8074ca0b2c2e8e376c827230ede4fd26e184bf8cd997d17e

Contents?: true

Size: 186 Bytes

Versions: 5

Compression:

Stored size: 186 Bytes

Contents

class Post < ActiveRecord::Base

  # Relationships
  has_many :comments, :foreign_key => :comment_id

  # Constraints
  validates_presence_of :body
  validates_uniqueness_of :title
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
legacy_data-0.2.1 spec/generators/models_from_tables/expected/post.rb
legacy_data-0.2.0 spec/generators/models_from_tables/expected/post.rb
legacy_data-0.1.12 spec/expected/post.rb
legacy_data-0.1.11 spec/expected/post.rb
legacy_data-0.1.10 spec/expected/post.rb