<commit_before>class CreateImportableAttachmentsVersions < ActiveRecord::Migration
  def change
    create_table :importable_attachments_versions, force: true do |t|
      t.string :item_type, null: false
      t.string :item_id, null: false  # item_type.id generally should be GUID
      t.string :event, null: false
      t.string :whodunnit
      t.text :object
      t.datetime :created_at
    end
    add_index :versions, [:item_type, :item_id]
  end
end

<commit_msg>add index to correct table<commit_after>class CreateImportableAttachmentsVersions < ActiveRecord::Migration
  def change
    create_table :importable_attachments_versions, force: true do |t|
      t.string :item_type, null: false
      t.string :item_id, null: false  # item_type.id generally should be GUID
      t.string :event, null: false
      t.string :whodunnit
      t.text :object
      t.datetime :created_at
    end
    add_index :importable_attachments_versions, [:item_type, :item_id]
  end
end


{'fraction_non_alphanumeric': 0.07739307535641547, 'fraction_numerical': 0.0, 'mean_word_length': 3.615023474178404, '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': '1560320', 'n_tokens_mistral': 313, 'n_tokens_neox': 313, 'n_words': 86}