Sha256: 0f357d0f646ba7400cabc2125a506851eb25efeb25d3ffbef223448304458bbf

Contents?: true

Size: 207 Bytes

Versions: 83

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

83 entries across 80 versions & 8 rubygems

Version Path
activerecord-7.0.0.rc1 lib/rails/generators/active_record/model/templates/abstract_base_class.rb.tt
activerecord-7.0.0.alpha2 lib/rails/generators/active_record/model/templates/abstract_base_class.rb.tt
activerecord-7.0.0.alpha1 lib/rails/generators/active_record/model/templates/abstract_base_class.rb.tt