<commit_before>class AddEnabledToMembers < ActiveRecord::Migration
  def up
    add_column :members, :enabled, :boolean, :default => false

    # Enable everyone so far
    Member.joins(:club).where("clubs.uses_isic = ?", false).update_all(:enabled => true)
    Member.joins(:club).where("clubs.uses_isic = ? AND photo_file_name NOT NULL", true).update_all(:enabled => true)
  end

  def down
    remove_column :members, :enabled
  end
end<commit_msg>Fix migration SQL error<commit_after>class AddEnabledToMembers < ActiveRecord::Migration
  def up
    add_column :members, :enabled, :boolean, :default => false

    # Enable everyone so far
    Member.joins(:club).where("clubs.uses_isic = ?", false).update_all(:enabled => true)
    Member.joins(:club).where("clubs.uses_isic = ? AND photo_file_name IS NOT NULL", true).update_all(:enabled => true)
  end

  def down
    remove_column :members, :enabled
  end
end
{'fraction_non_alphanumeric': 0.12459016393442623, 'fraction_numerical': 0.0, 'mean_word_length': 4.619631901840491, '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': '4734471', 'n_tokens_mistral': 287, 'n_tokens_neox': 284, 'n_words': 69}