<commit_before>class CreateForeignKeyConstraints < ActiveRecord::Migration
  def change
    change_table :aliases do |t|
      t.foreign_key :domain, dependent: :delete
    end

    change_table :mailboxes do |t|
      t.foreign_key :domain, dependent: :delete
      t.foreign_key :relocation, dependent: :delete
    end

    change_table :relocations do |t|
      t.foreign_key :mailbox
    end
  end
end
<commit_msg>Foreign key constraints target has to be plural. Why did this work in development?!<commit_after>class CreateForeignKeyConstraints < ActiveRecord::Migration
  def change
    change_table :aliases do |t|
      t.foreign_key :domains, dependent: :delete
    end

    change_table :mailboxes do |t|
      t.foreign_key :domains, dependent: :delete
      t.foreign_key :relocations, dependent: :delete
    end

    change_table :relocations do |t|
      t.foreign_key :mailboxes
    end
  end
end

{'fraction_non_alphanumeric': 0.07354555433589462, 'fraction_numerical': 0.0, 'mean_word_length': 3.448780487804878, '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': '5105222', 'n_tokens_mistral': 285, 'n_tokens_neox': 269, 'n_words': 85}