Sha256: 201be72869108e11c1762457e569ff03f4e985888afc354d63ed83b8921f6f44

Contents?: true

Size: 501 Bytes

Versions: 5

Compression:

Stored size: 501 Bytes

Contents

class User < ActiveRecord::Base
  has_many :posts
  has_many :comments
  validates_presence_of :last_name
end

class Post < ActiveRecord::Base
  belongs_to :user
  has_many   :comments
  has_many   :post_images
end

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

class PostImage < ActiveRecord::Base
  belongs_to :post
  has_many   :post_image_ratings
end

class PostImageRating < ActiveRecord::Base
  belongs_to :post_image
end

class IpAddress < ActiveRecord::Base
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
myronmarston-factory_data_preloader-0.3.2 test/lib/models.rb
myronmarston-factory_data_preloader-0.4.0 test/lib/models.rb
myronmarston-factory_data_preloader-0.4.1 test/lib/models.rb
myronmarston-factory_data_preloader-0.4.2 test/lib/models.rb
myronmarston-factory_data_preloader-0.4.3 test/lib/models.rb