Sha256: 2d8d344704f9c86028242eddfd0f3ebdc3a92957119809cbd4489e291aae32f7

Contents?: true

Size: 566 Bytes

Versions: 9

Compression:

Stored size: 566 Bytes

Contents

# frozen_string_literal: true

require "generators/delayed_job/delayed_job_generator"
require "generators/delayed_job/next_migration_version"
require "rails/generators/migration"
require "rails/generators/active_record"

# Extend the DelayedJobGenerator so that it creates an AR migration
module DelayedJob
  class UpgradeGenerator < ActiveRecordGenerator
    def create_migration_file
      migration_template(
        "upgrade_migration.rb",
        "db/migrate/add_queue_to_delayed_jobs.rb",
        migration_version: migration_version
      )
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
delayed_job_active_record-4.1.11 lib/generators/delayed_job/upgrade_generator.rb
delayed_job_active_record-4.1.10 lib/generators/delayed_job/upgrade_generator.rb
delayed_job_active_record-4.1.9 lib/generators/delayed_job/upgrade_generator.rb
delayed_job_active_record-4.1.9.rc1 lib/generators/delayed_job/upgrade_generator.rb
delayed_job_active_record-4.1.8 lib/generators/delayed_job/upgrade_generator.rb
delayed_job_active_record-4.1.7 lib/generators/delayed_job/upgrade_generator.rb
delayed_job_active_record-4.1.6 lib/generators/delayed_job/upgrade_generator.rb
delayed_job_active_record-4.1.5 lib/generators/delayed_job/upgrade_generator.rb
delayed_job_active_record-4.1.4 lib/generators/delayed_job/upgrade_generator.rb