<commit_before>class AddFilterableColumnToSpreeOptionTypes < ActiveRecord::Migration[6.0]
  def change
    add_column :spree_option_types, :filterable, :boolean, default: true, null: false
    add_index :spree_option_types, :filterable
  end
end<commit_msg>Check column and index presence in db in filtrable for option types migration<commit_after>class AddFilterableColumnToSpreeOptionTypes < ActiveRecord::Migration[6.0]
  def change
    unless column_exists?(:spree_option_types, :filterable)
      add_column :spree_option_types, :filterable, :boolean, default: true, null: false
    end
    unless index_exists?(:spree_option_types, :filterable)
      add_index :spree_option_types, :filterable
    end
  end
end
{'fraction_non_alphanumeric': 0.07531380753138076, 'fraction_numerical': 0.005578800557880056, 'mean_word_length': 5.970873786407767, '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': '536207', 'n_tokens_mistral': 219, 'n_tokens_neox': 220, 'n_words': 55}