class PaperTrail::MigrationGenerator

def add_paper_trail_migration(template, extra_options = {})

def add_paper_trail_migration(template, extra_options = {})
  migration_dir = File.expand_path("db/migrate")
  if self.class.migration_exists?(migration_dir, template)
    ::Kernel.warn "Migration already exists: #{template}"
  else
    migration_template(
      "#{template}.rb.erb",
      "db/migrate/#{template}.rb",
      { migration_version: migration_version }.merge(extra_options)
    )
  end
end