Class: DelayedJob::UpgradeGenerator

Inherits:
ActiveRecordGenerator show all
Defined in:
lib/generators/delayed_job/upgrade_generator.rb

Instance Method Summary collapse

Methods inherited from ActiveRecordGenerator

next_migration_number

Methods included from NextMigrationVersion

#next_migration_number

Instance Method Details

#create_migration_fileObject


11
12
13
14
15
16
17
# File 'lib/generators/delayed_job/upgrade_generator.rb', line 11

def create_migration_file
  migration_template(
    "upgrade_migration.rb",
    "db/migrate/add_queue_to_delayed_jobs.rb",
    migration_version: migration_version
  )
end