<commit_before>class ModifyTasks < ActiveRecord::Migration
  def change
    # Modifications to the tasks table to suport modification to Taskable
    rename_column :tasks, :from_user_id,            :user_id
    rename_column :tasks, :for_organization_id,     :organization_id

    remove_column :tasks, :from_organization_id
    remove_column :tasks, :task_status_type_id
    remove_column :tasks, :completed_on

    add_column    :tasks, :taskable_id,     :integer,                 :after => :object_key
    add_column    :tasks, :taskable_type,   :string,  :limit => 255,  :after => :taskable_id
    add_column    :tasks, :state,           :string,  :limit => 32,   :after => :send_reminder

    # Index the state
    add_index     :tasks, :state, :name => :tasks_idx3
    # Ger rid of the task status types tables
    drop_table    :task_status_types
  end
end<commit_msg>Fix migration<commit_after>class ModifyTasks < ActiveRecord::Migration
  def change
    # Modifications to the tasks table to suport modification to Taskable
    rename_column :tasks, :from_user_id,            :user_id
    rename_column :tasks, :for_organization_id,     :organization_id

    remove_column :tasks, :from_organization_id
    remove_column :tasks, :task_status_type_id
    remove_column :tasks, :completed_on

    add_column    :tasks, :taskable_id,     :integer,                 :after => :object_key
    add_column    :tasks, :taskable_type,   :string,  :limit => 254,  :after => :taskable_id
    add_column    :tasks, :state,           :string,  :limit => 32,   :after => :send_reminder

    # Index the state
    add_index     :tasks, :state, :name => :tasks_idx3
    # Ger rid of the task status types tables
    drop_table    :task_status_types
  end
end
{'fraction_non_alphanumeric': 0.08571428571428572, 'fraction_numerical': 0.006857142857142857, 'mean_word_length': 3.1492890995260665, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 15, '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': '1356200', 'n_tokens_mistral': 560, 'n_tokens_neox': 539, 'n_words': 148}