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