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