<commit_before>class CreateOauthConsumerTokens < ActiveRecord::Migration
  def self.up

    create_table :consumer_tokens do |t|
      t.integer :user_id
      t.string :type, :limit => 30
      t.string :token, :limit => 1024 # This has to be huge because of Yahoo's excessively large tokens
      t.string :secret
      t.timestamps
    end

    add_index :consumer_tokens, :token, :unique => true

  end

  def self.down
    drop_table :consumer_tokens
  end

end<commit_msg>add devainandor's consumer token index size fix to migrations<commit_after>class CreateOauthConsumerTokens < ActiveRecord::Migration
  def self.up

    create_table :consumer_tokens do |t|
      t.integer :user_id
      t.string :type, :limit => 30
      t.string :token, :limit => 1024 # This has to be huge because of Yahoo's excessively large tokens
      t.string :secret
      t.timestamps
    end

    add_index :consumer_tokens, :token, :unique => true, :length => 100

  end

  def self.down
    drop_table :consumer_tokens
  end

end
{'fraction_non_alphanumeric': 0.07941176470588235, 'fraction_numerical': 0.014705882352941176, 'mean_word_length': 3.1844262295081966, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 10, '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': '4154003', 'n_tokens_mistral': 338, 'n_tokens_neox': 306, 'n_words': 101}