Sha256: 0f357d0f646ba7400cabc2125a506851eb25efeb25d3ffbef223448304458bbf

Contents?: true

Size: 207 Bytes

Versions: 77

Compression:

Stored size: 207 Bytes

Contents

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

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

Version data entries

77 entries across 74 versions & 7 rubygems

Version Path
activerecord-8.0.0 lib/rails/generators/active_record/model/templates/abstract_base_class.rb.tt
activerecord-7.2.2 lib/rails/generators/active_record/model/templates/abstract_base_class.rb.tt
activerecord-7.1.5 lib/rails/generators/active_record/model/templates/abstract_base_class.rb.tt
activerecord-8.0.0.rc2 lib/rails/generators/active_record/model/templates/abstract_base_class.rb.tt
activerecord-7.2.1.2 lib/rails/generators/active_record/model/templates/abstract_base_class.rb.tt
activerecord-7.1.4.2 lib/rails/generators/active_record/model/templates/abstract_base_class.rb.tt
activerecord-7.0.8.6 lib/rails/generators/active_record/model/templates/abstract_base_class.rb.tt
activerecord-8.0.0.rc1 lib/rails/generators/active_record/model/templates/abstract_base_class.rb.tt
activerecord-7.2.1.1 lib/rails/generators/active_record/model/templates/abstract_base_class.rb.tt
activerecord-7.1.4.1 lib/rails/generators/active_record/model/templates/abstract_base_class.rb.tt
activerecord-7.0.8.5 lib/rails/generators/active_record/model/templates/abstract_base_class.rb.tt
activerecord-8.0.0.beta1 lib/rails/generators/active_record/model/templates/abstract_base_class.rb.tt
omg-activerecord-8.0.0.alpha9 lib/rails/generators/active_record/model/templates/abstract_base_class.rb.tt
omg-activerecord-8.0.0.alpha8 lib/rails/generators/active_record/model/templates/abstract_base_class.rb.tt
omg-activerecord-8.0.0.alpha7 lib/rails/generators/active_record/model/templates/abstract_base_class.rb.tt
omg-activerecord-8.0.0.alpha4 lib/rails/generators/active_record/model/templates/abstract_base_class.rb.tt
omg-activerecord-8.0.0.alpha3 lib/rails/generators/active_record/model/templates/abstract_base_class.rb.tt
omg-activerecord-8.0.0.alpha2 lib/rails/generators/active_record/model/templates/abstract_base_class.rb.tt
omg-activerecord-8.0.0.alpha1 lib/rails/generators/active_record/model/templates/abstract_base_class.rb.tt
activerecord-7.1.4 lib/rails/generators/active_record/model/templates/abstract_base_class.rb.tt