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: 20240302135932_add_metadata_to_spree_tax_rates.spree.rb
    path of file: ./repos/spree_starter/db/migrate
    
    the code of the file until where you have to start completion: # This migration comes from spree (originally 20220120092821)
class AddMetadataToSpreeTaxRates < ActiveRecord::Migration[5.2]
  def change
    change_table :spree_tax_rates do |t|
      if t.respond_to? :jsonb
        ad
    
  def change
    change_table :spree_tax_rates do |t|
      if t.respond_to? :jsonb
        add_column :spree_tax_rates, :public_metadata, :jsonb
        add_column :spree_tax_rates, :private_metadata, :jsonb
      else
        add_column :spree_tax_rates, :public_metadata, :json
        add_column :spree_tax_rates, :private_metadata, :json
      end
    end