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: 20180521160808_add_encrypted_body_to_message.rb
    path of file: ./repos/snpr/db/migrate
    
    the code of the file until where you have to start completion: # frozen_string_literal: true

class AddEncryptedBodyToMessage < ActiveRecord::Migration
  def up
    add_column :messages, :encrypted_body, :text
    add_column :m
    
  def up
    add_column :messages, :encrypted_body, :text
    add_column :messages, :encrypted_body_iv, :string
    add_column :messages, :encrypted_subject, :text
    add_column :messages, :encrypted_subject_iv, :string
    Message.reset_column_information
    Message.find_each do |message|
      # Read `body` and write to `encrypted_body`.
      message.update!(body: message.read_attribute(:body))
      message.update!(subject: message.read_attribute(:subject))
    end
  end