<commit_before>class CreateSettingsChangesTable < ActiveRecord::Migration
  def up
    create_table :settings_changes do |t|
      t.belongs_to :resource, :type => :bigint, :polymorphic => true
      t.string     :name
      t.string     :key
      t.text       :value
      t.timestamps
    end
    add_index :settings_changes, :key
    add_index :settings_changes, [:resource_id, :resource_type]
  end

  def down
    drop_table :settings_changes
  end
end<commit_msg>Remove deprecation warning about timestamps :null => false for Rails 5<commit_after>class CreateSettingsChangesTable < ActiveRecord::Migration
  def up
    create_table :settings_changes do |t|
      t.belongs_to :resource, :type => :bigint, :polymorphic => true
      t.string     :name
      t.string     :key
      t.text       :value
      t.timestamps :null => false
    end
    add_index :settings_changes, :key
    add_index :settings_changes, [:resource_id, :resource_type]
  end

  def down
    drop_table :settings_changes
  end
end
{'fraction_non_alphanumeric': 0.08102766798418973, 'fraction_numerical': 0.0009881422924901185, 'mean_word_length': 3.0846774193548385, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 9, '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': '371240', 'n_tokens_mistral': 320, 'n_tokens_neox': 314, 'n_words': 84}