Sha256: c1bb026f78649263cdf5cd58f72888d8306dd7ff44e568fe53738bdfd468df2d

Contents?: true

Size: 546 Bytes

Versions: 7

Compression:

Stored size: 546 Bytes

Contents

class EmailAddress < ActiveRecord::Base
end

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

7 entries across 7 versions & 2 rubygems

Version Path
myronmarston-factory_data_preloader-0.5.0 test/lib/models.rb
myronmarston-factory_data_preloader-0.5.1 test/lib/models.rb
myronmarston-factory_data_preloader-0.5.2 test/lib/models.rb
factory_data_preloader-1.0.3 test/lib/models.rb
factory_data_preloader-1.0.2 test/lib/models.rb
factory_data_preloader-1.0.1 test/lib/models.rb
factory_data_preloader-0.5.2 test/lib/models.rb