Sha256: be8694c4964a7a5760e8481bac009590e6ea9aefbb903098c98cadb57db03990

Contents?: true

Size: 213 Bytes

Versions: 37

Compression:

Stored size: 213 Bytes

Contents

<% module_namespacing do -%>
class <%= abstract_class_name %> < ApplicationRecord
  self.abstract_class = true

  connects_to database: { <%= ActiveRecord::Base.writing_role %>: :<%= database -%> }
end
<% end -%>

Version data entries

37 entries across 37 versions & 4 rubygems

Version Path
activerecord-6.1.7.10 lib/rails/generators/active_record/model/templates/abstract_base_class.rb.tt
activerecord-6.1.7.9 lib/rails/generators/active_record/model/templates/abstract_base_class.rb.tt
activerecord-6.1.7.8 lib/rails/generators/active_record/model/templates/abstract_base_class.rb.tt
activerecord-6.1.7.7 lib/rails/generators/active_record/model/templates/abstract_base_class.rb.tt
scrapbook-0.3.2 vendor/ruby/2.7.0/gems/activerecord-6.1.6.1/lib/rails/generators/active_record/model/templates/abstract_base_class.rb.tt
activerecord-6.1.7.6 lib/rails/generators/active_record/model/templates/abstract_base_class.rb.tt
activerecord-6.1.7.5 lib/rails/generators/active_record/model/templates/abstract_base_class.rb.tt
activerecord-6.1.7.4 lib/rails/generators/active_record/model/templates/abstract_base_class.rb.tt
scrapbook-0.3.1 vendor/ruby/2.7.0/gems/activerecord-6.1.6.1/lib/rails/generators/active_record/model/templates/abstract_base_class.rb.tt
activerecord-6.1.7.3 lib/rails/generators/active_record/model/templates/abstract_base_class.rb.tt
activerecord-6.1.7.2 lib/rails/generators/active_record/model/templates/abstract_base_class.rb.tt
activerecord-6.1.7.1 lib/rails/generators/active_record/model/templates/abstract_base_class.rb.tt
activerecord-6.1.7 lib/rails/generators/active_record/model/templates/abstract_base_class.rb.tt
activerecord-6.1.6.1 lib/rails/generators/active_record/model/templates/abstract_base_class.rb.tt
activerecord-6.1.6 lib/rails/generators/active_record/model/templates/abstract_base_class.rb.tt
activerecord-6.1.5.1 lib/rails/generators/active_record/model/templates/abstract_base_class.rb.tt
activerecord-6.1.5 lib/rails/generators/active_record/model/templates/abstract_base_class.rb.tt
activerecord-6.1.4.7 lib/rails/generators/active_record/model/templates/abstract_base_class.rb.tt
activerecord-6.1.4.6 lib/rails/generators/active_record/model/templates/abstract_base_class.rb.tt
activerecord-6.1.4.5 lib/rails/generators/active_record/model/templates/abstract_base_class.rb.tt