<commit_before>class CreateDrugTypesDrugs < ActiveRecord::Migration
  def change
    create_table :drug_types_drugs, id: false do |t|
      t.integer :drug_id
      t.integer :drug_type_id
      t.timestamps null: false
    end
    add_index(:drug_types_drugs, [:drug_id, :drug_type_id], unique: true)
  end
end<commit_msg>Added foreign_key: true to drug_types_drugs migration required fields.<commit_after>class CreateDrugTypesDrugs < ActiveRecord::Migration
  def change
    create_table :drug_types_drugs, id: false do |t|
      t.references :drug,      foreign_key: true
      t.references :drug_type, foreign_key: true
      t.timestamps null: false
    end
    add_index(:drug_types_drugs, [:drug_id, :drug_type_id], unique: true)
  end
end
{'fraction_non_alphanumeric': 0.08310991957104558, 'fraction_numerical': 0.0, 'mean_word_length': 4.1875, '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': '5211974', 'n_tokens_mistral': 265, 'n_tokens_neox': 252, 'n_words': 62}