Sha256: e2536532926cdf9ae4b7332454cbb9d2f89c489e13a2eae4e87dfa1a450db7df

Contents?: true

Size: 575 Bytes

Versions: 6

Compression:

Stored size: 575 Bytes

Contents

# encoding: UTF-8

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

module DelayedJobGroupsPlugin
  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_job_groups.rb')
    end

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

  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
delayed_job_groups_plugin-0.3.0 lib/generators/delayed_job_groups_plugin/install_generator.rb
delayed_job_groups_plugin-0.2.0 lib/generators/delayed_job_groups_plugin/install_generator.rb
delayed_job_groups_plugin-0.1.3 lib/generators/delayed_job_groups_plugin/install_generator.rb
delayed_job_groups_plugin-0.1.2 lib/generators/delayed_job_groups_plugin/install_generator.rb
delayed_job_groups_plugin-0.1.1 lib/generators/delayed_job_groups_plugin/install_generator.rb
delayed_job_groups_plugin-0.1.0 lib/generators/delayed_job_groups_plugin/install_generator.rb