<commit_before>class CreateUnidomPasswords < ActiveRecord::Migration

  def change

    create_table :unidom_passwords, id: :uuid do |t|

      t.column :hashed_content, 'char(128)', null: false
      t.column :pepper_content, 'char(128)', null: false

      t.column   :state, 'char(1)', null: false, default: 'C'
      t.datetime :opened_at,        null: false, default: ::Time.utc(1970)
      t.datetime :closed_at,        null: false, default: ::Time.utc(3000)
      t.boolean  :defunct,          null: false, default: false
      t.jsonb    :notation,         null: false, default: {}
<commit_msg>1, Improve the Password migration for the #opened_at column, & the #closed_at column.<commit_after>class CreateUnidomPasswords < ActiveRecord::Migration

  def change

    create_table :unidom_passwords, id: :uuid do |t|

      t.column :hashed_content, 'char(128)', null: false
      t.column :pepper_content, 'char(128)', null: false

      t.column   :state, 'char(1)', null: false, default: 'C'
      t.datetime :opened_at,        null: false, default: Unidom::Common::OPENED_AT
      t.datetime :closed_at,        null: false, default: Unidom::Common::CLOSED_AT
      t.boolean  :defunct,          null: false, default: false
      t.jsonb    :notation,         null: false, default: {}

{'fraction_non_alphanumeric': 0.125193199381762, 'fraction_numerical': 0.01777434312210201, 'mean_word_length': 3.124203821656051, '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': '3396372', 'n_tokens_mistral': 440, 'n_tokens_neox': 413, 'n_words': 113}