<commit_before>class CreateJobs < ActiveRecord::Migration
  def self.up
    create_table :jobs do |t|
      t.integer :recipe_id
      t.string :task
      t.datetime :start_time
      t.datetime :end_time
      t.boolean :success
      t.text :log
      t.text :error
      t.text :config

      t.timestamps
    end

    add_index :jobs, :recipe_id
  end

  def self.down<commit_msg>Set log column as blog<commit_after>class CreateJobs < ActiveRecord::Migration
  def self.up
    create_table :jobs do |t|
      t.integer :recipe_id
      t.string :task
      t.datetime :start_time
      t.datetime :end_time
      t.boolean :success
      t.binary :log, limit: 1048576
      t.text :error
      t.text :config

      t.timestamps
    end

    add_index :jobs, :recipe_id
  end

  def self.down
{'fraction_non_alphanumeric': 0.08030112923462986, 'fraction_numerical': 0.00878293601003764, 'mean_word_length': 2.257142857142857, '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': '3854138', 'n_tokens_mistral': 284, 'n_tokens_neox': 270, 'n_words': 71}