<commit_before>class TagalongMigration < ActiveRecord::Migration
  def self.up
    create_table :tagalong_tags do |t|
      t.string :name
    end
  end

  def self.down
    drop_table :tagalong_tags
  end
end<commit_msg>Modified the generated migration to be correct.<commit_after>class TagalongMigration < ActiveRecord::Migration
  def self.up
    create_table :tagalong_tags do |t|
      t.string :name
      t.integer :number_of_references
      t.integer :owner_id
      t.string :owner_type

      t.timestamps
    end

    add_index :tagalong_tags, :owner_id
    add_index :tagalong_tags, :owner_type

    create_table :tagalong_taggings do |t|
      t.integer :tagalong_tag_id
      t.integer :taggable_id
      t.string :taggable_type

      t.timestamps
    end

    add_index :tagalong_taggings, :tagalong_tag_id
    add_index :tagalong_taggings, :taggable_id
    add_index :tagalong_taggings, :taggable_type
  end

  def self.down
    drop_table :tagalong_tags
    drop_table :tagalong_taggings
  end
end
{'fraction_non_alphanumeric': 0.0610236220472441, 'fraction_numerical': 0.0, 'mean_word_length': 3.3276595744680852, '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': '5630004', 'n_tokens_mistral': 368, 'n_tokens_neox': 349, 'n_words': 79}