Sha256: 86e04681f7a3ada6a102dd89bcd89fb5e23f527d243dd805ad55ba2c655304ed
Contents?: true
Size: 848 Bytes
Versions: 62
Compression:
Stored size: 848 Bytes
Contents
# frozen_string-literal: true # :reek:IrresponsibleModule module RubyRabbitmqJanus # Module for generators module Generators if defined?(ActiveRecord) && !defined?(Mongo) # Create a migration for rails project with active record class MigrationGenerator < ::Rails::Generators::Base require 'rails/generators/active_record' include Rails::Generators::Migration desc 'Add to rails project RubyRabbitmqJanus migration file.' source_root File.expand_path('templates', __dir__) def install migration_template 'migration.rb', 'db/migrate/create_ruby_rabbitmq_janus_tables.rb' end def self.next_migration_number(dirname) ActiveRecord::Generators::Base.next_migration_number(dirname) end end end end end
Version data entries
62 entries across 62 versions & 1 rubygems