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: 20170723045121_backfill_nsfw_groups.rb
    path of file: ./repos/kitsu-server/db/migrate
    
    the code of the file until where you have to start completion: require 'upda
    
  def change
    say_with_time 'Settings nsfw category for nsfw Groups' do
      Group.where(nsfw: true).update_in_batches(category_id: 9)
    end

    say_with_time 'Filling nsfw column for Groups' do
      Group.where(category_id: 9).update_in_batches(nsfw: true)
    end
  end