<commit_before>class AddDescriptionToTeams < ActiveRecord::Migration
  def up
    add_column :teams, :description, :text
    Team.reset_column_information
    Team.update_all(['description = ?', 'Most powerful users with full spectrum of permissions.'], ['name = ?', Team::ADMINS])
    add_index :teams, [:organization_id, :name], :unique => true
  end

  def down
    remove_column :teams, :description
    remove_index :teams, [:organization_id, :name]
  end
end<commit_msg>Fixed a problem in old migration.<commit_after>class AddDescriptionToTeams < ActiveRecord::Migration
  def up
    add_column :teams, :description, :text
    Team.reset_column_information
    Team.where(:name => Team::ADMINS).update_all(['description = ?', 'Most powerful users with full spectrum of permissions.'])
    add_index :teams, [:organization_id, :name], :unique => true
  end

  def down
    remove_column :teams, :description
    remove_index :teams, [:organization_id, :name]
  end
end
{'fraction_non_alphanumeric': 0.11408016443987667, 'fraction_numerical': 0.0, 'mean_word_length': 4.867469879518072, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 6, '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': '6715528', 'n_tokens_mistral': 297, 'n_tokens_neox': 292, 'n_words': 81}