Sha256: cef1e1e85efe2ab18510a24fb9a6a154ad0ed336a01f3689fe248e6c652ef273

Contents?: true

Size: 394 Bytes

Versions: 72

Compression:

Stored size: 394 Bytes

Contents

# frozen_string_literal: true

require "rails/generators/active_record"

module ActiveRecord
  module Generators # :nodoc:
    class MultiDbGenerator < ::Rails::Generators::Base # :nodoc:
      source_root File.expand_path("templates", __dir__)

      def create_multi_db
        filename = "multi_db.rb"
        template filename, "config/initializers/#{filename}"
      end
    end
  end
end

Version data entries

72 entries across 69 versions & 7 rubygems

Version Path
activerecord-7.2.1 lib/rails/generators/active_record/multi_db/multi_db_generator.rb
activerecord-7.2.0 lib/rails/generators/active_record/multi_db/multi_db_generator.rb
activerecord-7.2.0.rc1 lib/rails/generators/active_record/multi_db/multi_db_generator.rb
blacklight-spotlight-3.6.0.beta8 vendor/bundle/ruby/3.2.0/gems/activerecord-7.1.3.4/lib/rails/generators/active_record/multi_db/multi_db_generator.rb
blacklight-spotlight-3.6.0.beta8 vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.8.4/lib/rails/generators/active_record/multi_db/multi_db_generator.rb
activerecord-7.2.0.beta3 lib/rails/generators/active_record/multi_db/multi_db_generator.rb
cm-admin-1.5.22 vendor/bundle/ruby/3.3.0/gems/activerecord-7.0.5.1/lib/rails/generators/active_record/multi_db/multi_db_generator.rb
cm-admin-1.5.21 vendor/bundle/ruby/3.3.0/gems/activerecord-7.0.5.1/lib/rails/generators/active_record/multi_db/multi_db_generator.rb
cm-admin-1.5.20 vendor/bundle/ruby/3.3.0/gems/activerecord-7.0.5.1/lib/rails/generators/active_record/multi_db/multi_db_generator.rb
tinymce-rails-7.1.2 vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.3.4/lib/rails/generators/active_record/multi_db/multi_db_generator.rb
activerecord-7.2.0.beta2 lib/rails/generators/active_record/multi_db/multi_db_generator.rb
activerecord-7.1.3.4 lib/rails/generators/active_record/multi_db/multi_db_generator.rb
activerecord-7.0.8.4 lib/rails/generators/active_record/multi_db/multi_db_generator.rb
activerecord-7.2.0.beta1 lib/rails/generators/active_record/multi_db/multi_db_generator.rb
activerecord-7.1.3.2 lib/rails/generators/active_record/multi_db/multi_db_generator.rb
activerecord-7.1.3.1 lib/rails/generators/active_record/multi_db/multi_db_generator.rb
activerecord-7.0.8.1 lib/rails/generators/active_record/multi_db/multi_db_generator.rb
activerecord-7.1.3 lib/rails/generators/active_record/multi_db/multi_db_generator.rb
scrapbook-0.3.2 vendor/ruby/2.7.0/gems/activerecord-7.0.3.1/lib/rails/generators/active_record/multi_db/multi_db_generator.rb
scrapbook-0.3.2 vendor/ruby/2.7.0/gems/activerecord-7.0.2.3/lib/rails/generators/active_record/multi_db/multi_db_generator.rb