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: 20140906090606_make_comments_polymorphic.rb
    path of file: ./repos/onebody/db/migrate
    
    the code of the file until where you have to start completion: class MakeCommentsPolymorphic < ActiveRecord::Migration[4.2]
  def up
    change_table :comments do |t|
      t.references :commentable, polymorphic: true
    end

    Comment.reset_column_information

    print 'Updating co
    
  def up
    change_table :comments do |t|
      t.references :commentable, polymorphic: true
    end

    Comment.reset_column_information

    print 'Updating comments'
    Site.each do
      Comment.all.each do |comment|
        if comment.verse_id
          comment.commentable_type = 'Verse'
          comment.commentable_id = comment.verse_id
        elsif comment.picture_id
          comment.commentable_type = 'Picture'
          comment.commentable_id = comment.picture_id
        end
        comment.save(validate: false)
        print '.'
      end
    end