Sha256: 74ab7f2c917b0bae55dee40694f2fc76098a4ce821b1b23127f78303d184f593

Contents?: true

Size: 583 Bytes

Versions: 10

Compression:

Stored size: 583 Bytes

Contents

# frozen_string_literal: true

require 'rails/generators'
require 'rails/generators/migration'
require 'rails/generators/active_record'

module DelayedJobGroupsPlugin
  class InstallGenerator < Rails::Generators::Base
    include Rails::Generators::Migration

    source_paths << File.join(File.dirname(__FILE__), 'templates')

    def create_migration_file
      migration_template('migration.erb', 'db/migrate/create_delayed_job_groups.rb')
    end

    def self.next_migration_number(dirname)
      ActiveRecord::Generators::Base.next_migration_number(dirname)
    end

  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
delayed_job_groups_plugin-0.12.0 lib/generators/delayed_job_groups_plugin/install_generator.rb
delayed_job_groups_plugin-0.11.0 lib/generators/delayed_job_groups_plugin/install_generator.rb
delayed_job_groups_plugin-0.10.1 lib/generators/delayed_job_groups_plugin/install_generator.rb
delayed_job_groups_plugin-0.10.0 lib/generators/delayed_job_groups_plugin/install_generator.rb
delayed_job_groups_plugin-0.9.0 lib/generators/delayed_job_groups_plugin/install_generator.rb
delayed_job_groups_plugin-0.8.0 lib/generators/delayed_job_groups_plugin/install_generator.rb
delayed_job_groups_plugin-0.7.0 lib/generators/delayed_job_groups_plugin/install_generator.rb
delayed_job_groups_plugin-0.6.2 lib/generators/delayed_job_groups_plugin/install_generator.rb
delayed_job_groups_plugin-0.6.0 lib/generators/delayed_job_groups_plugin/install_generator.rb
delayed_job_groups_plugin-0.5.0 lib/generators/delayed_job_groups_plugin/install_generator.rb