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-8.0.0 lib/rails/generators/active_record/multi_db/multi_db_generator.rb
activerecord-7.2.2 lib/rails/generators/active_record/multi_db/multi_db_generator.rb
activerecord-7.1.5 lib/rails/generators/active_record/multi_db/multi_db_generator.rb
activerecord-8.0.0.rc2 lib/rails/generators/active_record/multi_db/multi_db_generator.rb
activerecord-7.2.1.2 lib/rails/generators/active_record/multi_db/multi_db_generator.rb
activerecord-7.1.4.2 lib/rails/generators/active_record/multi_db/multi_db_generator.rb
activerecord-7.0.8.6 lib/rails/generators/active_record/multi_db/multi_db_generator.rb
activerecord-8.0.0.rc1 lib/rails/generators/active_record/multi_db/multi_db_generator.rb
activerecord-7.2.1.1 lib/rails/generators/active_record/multi_db/multi_db_generator.rb
activerecord-7.1.4.1 lib/rails/generators/active_record/multi_db/multi_db_generator.rb
activerecord-7.0.8.5 lib/rails/generators/active_record/multi_db/multi_db_generator.rb
activerecord-8.0.0.beta1 lib/rails/generators/active_record/multi_db/multi_db_generator.rb
omg-activerecord-8.0.0.alpha9 lib/rails/generators/active_record/multi_db/multi_db_generator.rb
omg-activerecord-8.0.0.alpha8 lib/rails/generators/active_record/multi_db/multi_db_generator.rb
omg-activerecord-8.0.0.alpha7 lib/rails/generators/active_record/multi_db/multi_db_generator.rb
omg-activerecord-8.0.0.alpha4 lib/rails/generators/active_record/multi_db/multi_db_generator.rb
omg-activerecord-8.0.0.alpha3 lib/rails/generators/active_record/multi_db/multi_db_generator.rb
omg-activerecord-8.0.0.alpha2 lib/rails/generators/active_record/multi_db/multi_db_generator.rb
omg-activerecord-8.0.0.alpha1 lib/rails/generators/active_record/multi_db/multi_db_generator.rb
activerecord-7.1.4 lib/rails/generators/active_record/multi_db/multi_db_generator.rb