Sha256: 553552edd34950722a4ca237fcb3477d6f4eb3612758fee585b69540461ac78d
Contents?: true
Size: 431 Bytes
Versions: 3
Compression:
Stored size: 431 Bytes
Contents
class SeedService class << self def seed service = SeedService.new service.call end end def call reset create end private def reset # Person.delete_all # Post.delete_all # Project.delete_all end def create # FactoryBot.create_list(:post, rand(10..20)) # FactoryBot.create_list(:person, rand(10..20)) # FactoryBot.create_list(:project, rand(10..20)) end end
Version data entries
3 entries across 3 versions & 1 rubygems