You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: project_factory.rb
    path of file: ./repos/kaiju/app/models/kaiju
    
    the code of the file until where you have to start completion: require 'id_generator'
require 'kaiju/project'
require 'kaiju/user'
require 'kaiju/workspace_factory'

module Kaiju
  class ProjectFactory
    def self.new_project(owner_id, type)
      project = Project.new(IdGenerator.object_name)
      user = User.by_id(owner_id)
      user.projects << project.id
      pr
    
    def self.new_project(owner_id, type)
      project = Project.new(IdGenerator.object_name)
      user = User.by_id(owner_id)
      user.projects << project.id
      project.owner = owner_id
      project.name = 'Untitled Project'
      now = Time.now.iso8601_precise
      project.creation_date_time = now
      project.update_date_time = now
      project.type = type
      project
    end