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: 20190715104422_create_units.rb
    path of file: ./repos/ekylibre/db/migrate
    
    the code of the file until where you have to start completion: class CreateUnits < ActiveRecord::Migration[4.2]
  UNITS = [["Million", "million", 37, "M.", 1000000.0, "none", "ReferenceUnit"],
           ["Acre", "acre", 33, "acre", 4046.8564224, "surface_area", "ReferenceUnit"],
           ["Are", "are", 33, "a", 100.0, "surface_area", "ReferenceUnit"],
           ["Milliard", "billion", 37, "G.", 1000000000.0, "none", "ReferenceUnit"],
  
    
  def up
    create_table :units do |t|
      t.string      :name, null: false
      t.string      :reference_name
      t.references  :base_unit, index: true
      t.string      :symbol
      t.string      :work_code
      t.decimal     :coefficient, precision: 20, scale: 10, default: 1.0, null: false
      t.text        :description
      t.string      :dimension, null: false
      t.string      :type, null: false
      t.timestamps
    end


    sql_units = UNITS.map do |name, reference_name, base_unit_id, symbol, coefficient, dimension, type|
                    <<-VALUE.strip
                      (#{quote(name)}, #{quote(reference_name)}, #{quote(base_unit_id)}, #{quote(symbol)}, #{quote(coefficient)}, #{quote(dimension)}, #{quote(type)}, CURRENT_TIMESTAMP, CURRENT_TIMESTAMP)
                    VALUE
                  end
    execute <<-SQL
      INSERT INTO units (name, reference_name, base_unit_id, symbol, coefficient, dimension, type, created_at, updated_at)
        VALUES
          #{sql_units.join(',')}
    SQL
  end