Sha256: a79b24268b7613446860211f3efbdc418ff44cc176bb1501344df26b084c003b
Contents?: true
Size: 556 Bytes
Versions: 2
Compression:
Stored size: 556 Bytes
Contents
require 'rails/generators' require 'rails/generators/migration' require 'rails/generators/active_record' module DelayedJobHeartbeatPlugin class InstallGenerator < Rails::Generators::Base include Rails::Generators::Migration self.source_paths << File.join(File.dirname(__FILE__), 'templates') def create_migration_file migration_template('migration.rb', 'db/migrate/create_delayed_workers.rb') end def self.next_migration_number(dirname) ActiveRecord::Generators::Base.next_migration_number(dirname) end end end
Version data entries
2 entries across 2 versions & 1 rubygems