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: insert_array.rb
    path of file: ./repos/localtower/lib/localtower/generators/service_objects
    
    the code of the file until where you have to start completion: module Localtower
  module Generators
    module ServiceOb
    
        def call
          attributes.each do |attribute|
            line_str = File.read(Localtower::Tools.last_migration).match(/((.*)t\.string :#{attribute})/)[0]
            content = File.read(Localtower::Tools.last_migration).gsub(line_str, "#{line_str}, array: true")
            File.write(Localtower::Tools.last_migration, content)
          end
        end