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: 20200220171133_rename_bim_module.rb
    path of file: ./repos/openproject/db/migrate
    
    the code of the file until where you have to start completion: #-- copyright
# OpenProject is an open source project management software.
# Copyright (C) 2012-2024 the OpenProject GmbH
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License version 3.
#
# OpenProject is a fork of ChiliProject, which is a fork of Redmine. The copyright follows:
# Copyright (C) 2006-2013 Jean-Philippe Lang
# Copyright (C) 2010-2013 the ChiliProject Team
#
# This program is free software; you can redistribu
    
  def up
    projects_with_bcf = EnabledModule.where(name: 'bcf').pluck(:project_id)
    # Delete all bcf to avoid duplicates
    EnabledModule.where(name: 'bcf').delete_all
    EnabledModule.where(name: 'ifc_models').update_all(name: 'bim')

    # Re-enable bim if ifc_models was not active but bcf was
    Project.where(id: projects_with_bcf).includes(:enabled_modules).each do |project|
      project.enabled_modules.create(name: 'bim') unless project.enabled_module_names.include?('bim')
    end

    # Rename attachments container
    execute "UPDATE attachments SET container_type = 'Bim::Bcf::Viewpoint' WHERE container_type = 'Bcf::Viewpoint'"
    execute "UPDATE attachments SET container_type = 'Bim::IfcModels::IfcModel' WHERE container_type = 'IFCModels::IFCModel'"
  end