Skip to content

Latest commit

 

History

History
43 lines (34 loc) · 1.5 KB

File metadata and controls

43 lines (34 loc) · 1.5 KB

ActiveRecord::MTI

0.4.0 (Unreleased)

  • Refactored to improve inheritance detection at boot
  • Improved Registry of parent/child tables
  • Simplified a lot of the logic
  • Table naming is now configurable
  • Removed uses_mti

0.3.0 (Unreleased)

  • Greatly improved future-proofing injection strategy.
    • No longer overwriting (and maintaining) ActiveRecord Calculation sub-routines.
  • Instead of injecting at build_select, we're injecting at build_arel with one additional new sub-routine (build_mti)
    • build_mti sub-routine detects if an MTI projection is needed based on grouping and selecting from query being built.
  • No longer need to use uses_mti

0.2.1 (September 20th 2017)

  • More reliable class discrimination
  • Improved view support

0.1.1 (June 23rd 2017)

  • Fixes issue where inheritance check is called multiple times.
  • Can handle a (simple) view that references a table that uses MTI

0.1.0 (May 12th 2017)

  • PSQL Adapter now responds to version
  • Improved column pulls from DB

0.0.7 (May 11th 2017)

  • Specs!
  • Breaking Change: must call uses_mti in models
  • MTI class discrimination happens before STI
  • More reliable projection/unprojection
  • Improved table_name inference

0.0.6 (March 28th 2017)

  • Improve how ActiveRecord::MTI is injected into Rails

0.0.5 (September 27th 2016)

  • Allow SQL calculations (like sum and count) to execute by removing unneeded MTI projections

0.0.2 (September 21st 2016)

  • Default value to return when finding MTI class