<commit_before>class MigrateTaxCategoriesToLineItems < ActiveRecord::Migration
  def change
    Spree::LineItem.includes(:variant => { :product => :tax_category }).find_in_batches do |line_items|
      line_items.each do |line_item|
        next if line_item.variant.nil?
        next if line_item.variant.product.nil?
        next if line_item.product.nil?
        line_item.update_column(:tax_category_id, line_item.product.tax_category_id)
      end<commit_msg>Removing .includes() call from MigrateTaxCategoriesToLineItems<commit_after>class MigrateTaxCategoriesToLineItems < ActiveRecord::Migration
  def change
    Spree::LineItem.find_each do |line_item|
      next if line_item.variant.nil?
      next if line_item.variant.product.nil?
      next if line_item.product.nil?
      line_item.update_column(:tax_category_id, line_item.product.tax_category_id)
{'fraction_non_alphanumeric': 0.08574739281575898, 'fraction_numerical': 0.0, 'mean_word_length': 4.468354430379747, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '4824967', 'n_tokens_mistral': 268, 'n_tokens_neox': 263, 'n_words': 48}