Sha256: 5ab381a0a3f4149f87e5ca130e7d31872b42892fe4993add6615605d12baa214

Contents?: true

Size: 483 Bytes

Versions: 186

Compression:

Stored size: 483 Bytes

Contents

# frozen_string_literal: true

require "rails/generators/named_base"
require "rails/generators/active_model"
require "rails/generators/active_record/migration"
require "active_record"

module ActiveRecord
  module Generators # :nodoc:
    class Base < Rails::Generators::NamedBase # :nodoc:
      include ActiveRecord::Generators::Migration

      # Set the current directory as base for the inherited generators.
      def self.base_root
        __dir__
      end
    end
  end
end

Version data entries

186 entries across 181 versions & 14 rubygems

Version Path
activerecord-8.0.0 lib/rails/generators/active_record.rb
activerecord-7.2.2 lib/rails/generators/active_record.rb
activerecord-7.1.5 lib/rails/generators/active_record.rb
activerecord-8.0.0.rc2 lib/rails/generators/active_record.rb
activerecord-7.2.1.2 lib/rails/generators/active_record.rb
activerecord-7.1.4.2 lib/rails/generators/active_record.rb
activerecord-7.0.8.6 lib/rails/generators/active_record.rb
activerecord-6.1.7.10 lib/rails/generators/active_record.rb
activerecord-8.0.0.rc1 lib/rails/generators/active_record.rb
activerecord-6.1.7.9 lib/rails/generators/active_record.rb
activerecord-7.2.1.1 lib/rails/generators/active_record.rb
activerecord-7.1.4.1 lib/rails/generators/active_record.rb
activerecord-7.0.8.5 lib/rails/generators/active_record.rb
activerecord-8.0.0.beta1 lib/rails/generators/active_record.rb
omg-activerecord-8.0.0.alpha9 lib/rails/generators/active_record.rb
omg-activerecord-8.0.0.alpha8 lib/rails/generators/active_record.rb
omg-activerecord-8.0.0.alpha7 lib/rails/generators/active_record.rb
omg-activerecord-8.0.0.alpha4 lib/rails/generators/active_record.rb
omg-activerecord-8.0.0.alpha3 lib/rails/generators/active_record.rb
omg-activerecord-8.0.0.alpha2 lib/rails/generators/active_record.rb