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: migration_generator.rb
    path of file: ./repos/foreman/lib/generators/plugin
    
    the code of the file until where you have to start completion: require 'rails/generators'

module Plugin
  class MigrationGenerator < Rails::Generators::Base
    class_option :p
    
    def copy_latest_migration
      destination_file = File.join(
        destination_root,
        'db/migrate',
        destination_file_name
      )

      unless options['pretend']
        if migration_file
          # There is no rename task for some reason...
          copy_file migration_file, destination_file
          remove_file File.join('db/migrate', migration_file)
        else
          say_status(
            :error,
            _('Could not find %{migration_name} migration in %{destination}') % {
              :migration_name => migration_pattern,
              :destination => destination_root,
            },
            :red
          )
        end