Sha256: f749c9cb7bf3c00684cc20d62c8122c01def73789863761789e4dd390f7a1593

Contents?: true

Size: 131 Bytes

Versions: 6

Compression:

Stored size: 131 Bytes

Contents

class Post < ActiveRecord::Base
  validate :title, :presence => true
  validate :body, :presence => true
  
  belongs_to :user
end

Version data entries

6 entries across 3 versions & 1 rubygems

Version Path
transactionata-0.3.0 test/rails2/app/models/post.rb
transactionata-0.3.0 test/rails3/app/models/post.rb
transactionata-0.2.0 test/rails2/app/models/post.rb
transactionata-0.2.0 test/rails3/app/models/post.rb
transactionata-0.1.0 test/rails2/app/models/post.rb
transactionata-0.1.0 test/rails3/app/models/post.rb