RubyGems Navigation menu

store_base_sti_class 2.0.2

ActiveRecord has always stored the base class in polymorphic _type columns when using STI. This can have non-trivial performance implications in certain cases. This gem adds the 'store_base_sti_class' configuration option which controls whether ActiveRecord will store the base class or the actual class. Defaults to true for backwards compatibility.

Gemfile:
= Copy to clipboard Copied!

install:
=

Versions:

  1. 3.2.0 - February 29, 2024 (7 KB)
  2. 3.1.0 - October 24, 2023 (7 KB)
  3. 3.0.0 - February 28, 2022 (7 KB)
  4. 2.0.3 - March 31, 2021 (11.5 KB)
  5. 2.0.2 - December 11, 2020 (12 KB)
Show all versions (18 total)

Runtime Dependencies (1):

activerecord >= 4.0

Development Dependencies (3):

appraisal >= 0
bundler >= 0
minitest >= 4.0

Owners:

Pushed by:

Authors:

  • AppFolio

SHA 256 checksum:

4c64c48537c6211635bb99a369a1f740372edaa90544efb3c3b720f988e16c14

Total downloads 1,184,677

For this version 9,114

License:

MIT

Required Ruby Version: >= 0

Links: