Sha256: 27696df75ce22b579b73b42eedb19c1dc77d2a7a46570c472e8f3a66d14a722e

Contents?: true

Size: 535 Bytes

Versions: 2

Compression:

Stored size: 535 Bytes

Contents

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

2 entries across 2 versions & 1 rubygems

Version Path
delayed_job_active_record-4.1.4.beta1 lib/generators/delayed_job/upgrade_generator.rb
delayed_job_active_record-4.1.3 lib/generators/delayed_job/upgrade_generator.rb