<commit_before>require 'rails/generators/migration'
require 'rails/generators/active_record'

class MakeFlaggableGenerator < Rails::Generators::Base
  include Rails::Generators::Migration

  desc "Generates a migration for the Flag model"

  def self.source_root
    @source_root ||= File.dirname(__FILE__) + '/templates'
  end

  def self.next_migration_number(path)
    ActiveRecord::Generators::Base.next_migration_number(path)
  end

  def generate_migration
    migration_template 'migration.rb', 'db/migrate/create_make_flaggable_tables'
  end
end<commit_msg>Add .rb to generated migration file<commit_after>require 'rails/generators/migration'
require 'rails/generators/active_record'

class MakeFlaggableGenerator < Rails::Generators::Base
  include Rails::Generators::Migration

  desc "Generates a migration for the Flag model"

  def self.source_root
    @source_root ||= File.dirname(__FILE__) + '/templates'
  end

  def self.next_migration_number(path)
    ActiveRecord::Generators::Base.next_migration_number(path)
  end

  def generate_migration
    migration_template 'migration.rb', 'db/migrate/create_make_flaggable_tables.rb'
  end
end
{'fraction_non_alphanumeric': 0.09177489177489177, 'fraction_numerical': 0.0, 'mean_word_length': 5.8, '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': '3952824', 'n_tokens_mistral': 367, 'n_tokens_neox': 356, 'n_words': 72}