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: 20200917092443_add_fec_document_templates.rb
    path of file: ./repos/ekylibre/db/migrate
    
    the code of the file until where you have to start completion: class AddFecDocumentTemplates < ActiveRecord::Migration[4.2]

    NATURES = { fec_data_error: "Fichier d'erreurs de donnÃ©es FEC",
                fec_structure_error: "Fichier d'erreurs de structure FEC" }

  def up
    NATURES.map do |nature, translation|
      execute <<-SQL
        INSERT INTO document_templates(name, active, by_def
    
  def up
    NATURES.map do |nature, translation|
      execute <<-SQL
        INSERT INTO document_templates(name, active, by_default, nature, language, archiving, managed, created_at, updated_at)
          VALUES
           (#{quote(translation)}, 't', 't', #{quote(nature)}, 'fra', 'last', 't', now(), now())
        SQL
    end
  end

  def down
    # NOOP
  end

  private

    def quote(value)
      ActiveRecord::Base.connection.quote value
    end
end