<commit_before>class AddOrderGateway < ActiveRecord::Migration
  def change
    add_column :orders, :gateway, :string, null: true, default: nil
    add_index :orders, :gateway

    if RacingAssociation.current.short_name == "NABRA"
      Order.where(gateway: nil).purchased.update_all gateway: "elavon"
    end
  end
end<commit_msg>Hack around dupe DB columns to finish deploy after bad migration<commit_after>class AddOrderGateway < ActiveRecord::Migration
  def change
    add_column(:orders, :gateway, :string, null: true, default: nil) rescue nil
    add_index(:orders, :gateway) rescue nil

    if RacingAssociation.current.short_name == "NABRA"
      Order.where(gateway: nil).purchased.update_all gateway: "elavon"
    end
  end
end
{'fraction_non_alphanumeric': 0.09472259810554803, 'fraction_numerical': 0.0, 'mean_word_length': 4.648854961832061, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '362214', 'n_tokens_mistral': 233, 'n_tokens_neox': 230, 'n_words': 63}