Sha256: a447240a4e87866232217d2115e5b327f0515693386a703ed5dd338be5fc11a5

Contents?: true

Size: 484 Bytes

Versions: 3

Compression:

Stored size: 484 Bytes

Contents

require 'rails/generators/active_record'

module DelayedJob
  class ProgressGenerator < Rails::Generators::Base
    include Rails::Generators::Migration

    source_paths << File.join(File.dirname(__FILE__), 'templates')

    def create_migration_file
      migration_template 'progress_migration.rb', 'db/migrate/add_progress_to_delayed_jobs.rb'
    end

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

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
delayed_job_progress-0.0.3 lib/generators/delayed_job/progress_generator.rb
delayed_job_progress-0.0.2 lib/generators/delayed_job/progress_generator.rb
delayed_job_progress-0.0.1 lib/delayed_job_progress/generators/delayed_job/progress_generator.rb