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: 20240108022138_change_enable_admin_sidebar_to_group_post_migration.rb
    path of file: ./repos/discourse/db/post_migrate
    
    the code of the file until where you have to start completion: # frozen_string_literal: true

class ChangeEnableAdminSidebarToGroupPostMigration < ActiveRecord::Migration[7.0]
  def change
    enable_admin_sidebar_navigation_raw =
      DB.query_single(
        "SELECT value FROM site_settings WHERE name = 'enable_admin_sidebar_navigation'",
      ).first


    
  def change
    enable_admin_sidebar_navigation_raw =
      DB.query_single(
        "SELECT value FROM site_settings WHERE name = 'enable_admin_sidebar_navigation'",
      ).first

    if enable_admin_sidebar_navigation_raw.present? && enable_admin_sidebar_navigation_raw == "t"
      DB.exec(
        "INSERT INTO site_settings(name, value, data_type, created_at, updated_at)
        VALUES('admin_sidebar_enabled_groups', :setting, '20', NOW(), NOW())",
        setting: "1", # 1 is the Group::AUTO_GROUPS[:admins] group id
      )
    end