Sha256: c3e6c4518891284ce56a09cd1f4877c656916c1c47f62f150ef1df5975512fd0
Contents?: true
Size: 636 Bytes
Versions: 6
Compression:
Stored size: 636 Bytes
Contents
# frozen_string_literal: true require 'generators/internal_affairs/generator_helper' require 'rails/generators/migration' require 'rails/generators/active_record' # Extend the DelayedJobGenerator so that it creates an AR migration module InternalAffairs class ActiveRecordGenerator < ::Rails::Generators::Base include ::ActiveRecord::Generators::Migration include ::InternalAffairs::GeneratorHelper source_paths << File.join(File.dirname(__FILE__), 'templates') def create_migration_file migration_template( 'migration.rb', 'db/migrate/create_pending_operations.rb' ) end end end
Version data entries
6 entries across 6 versions & 1 rubygems