<commit_before># frozen_string_literal: true

class CreateSocializerPersonPlaces < ActiveRecord::Migration[7.0]
  def change
    create_table :socializer_person_places do |t|
      t.references :person, null: false
      t.string   :city_name
      t.boolean  :current, default: false

      t.timestamps
    end

    add_foreign_key :socializer_person_places, :socializer_people,
                    column: :person_id,
                    primary_key: "id",
                    on_delete: :cascade
  end
end
<commit_msg>add `NOT NULL` to socializer_person_places.city_name - models validates its presence but it's not non-NULL in the database<commit_after># frozen_string_literal: true

class CreateSocializerPersonPlaces < ActiveRecord::Migration[7.0]
  def change
    create_table :socializer_person_places do |t|
      t.references :person, null: false
      t.string   :city_name, null: false
      t.boolean  :current, default: false

      t.timestamps
    end

    add_foreign_key :socializer_person_places, :socializer_people,
                    column: :person_id,
                    primary_key: "id",
                    on_delete: :cascade
  end
end

{'fraction_non_alphanumeric': 0.07204116638078903, 'fraction_numerical': 0.003430531732418525, 'mean_word_length': 2.6930379746835444, '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': '2012630', 'n_tokens_mistral': 362, 'n_tokens_neox': 343, 'n_words': 87}