class ProgressJob::Generators::InstallGenerator

Public Class Methods

next_migration_number(path) click to toggle source
# File lib/generators/progress_job/install_generator.rb, line 15
def self.next_migration_number(path)
  @migration_number = Time.now.utc.strftime("%Y%m%d%H%M%S").to_i.to_s
end

Public Instance Methods

install() click to toggle source
# File lib/generators/progress_job/install_generator.rb, line 11
def install
  migration_template "migration.rb", "db/migrate/add_progress_to_delayed_jobs.rb"
end