<commit_before>class AddDeviceInformationToSsoClients < ActiveRecord::Migration
  def change
    change_table :sso_clients do |t|
      t.string      "device_os"
      t.string      "device_os_version"
      t.string      "device_model"
      t.string      "random_token", null: false
    end
  end
end<commit_msg>Modify migration so client always has a random token created <commit_after>class AddDeviceInformationToSsoClients < ActiveRecord::Migration
  def change
    change_table :sso_clients do |t|
      t.string      "device_os"
      t.string      "device_os_version"
      t.string      "device_model"
      t.string      "random_token"
    end

    Sso::Client.find_each do |client|
      client.save
    end

    change_column :sso_clients, :random_token, :string, :null => true
  end
end
{'fraction_non_alphanumeric': 0.07384230287859825, 'fraction_numerical': 0.0, 'mean_word_length': 2.864734299516908, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 4, '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': '2561168', 'n_tokens_mistral': 252, 'n_tokens_neox': 251, 'n_words': 62}