Releases: crashtech/torque-postgresql
Releases · crashtech/torque-postgresql
Fix auxiliary statements
New Active Record version implemented an Immutable exception for Arel queries. Since CTEs rely on joins, this fixes how the joins are built during the query.
Fix performance issue
- Fix performance problems for applications that doesn't use inheritance;
- Fix specs by dropping the database before running it again.
Fixes to array associations and enum
- Join on array associations were broken on rails 5.2.3 or higher
- Improve enum builder to use similar tools as the Interval, which use generated strings
- Fix array set scopes to properly cast the values while querying
- Add setting to raise an exception (or just notify) whenever the enum will build a method on top of an existing one
- Add additional scopes
has_
andhas_any_
for enum sets - Add ability to get the enum values as symbols using
Enum::Roles.keys
orModel.roles_keys
General Improvements
- Several bug fixes
- A bunch of performance improvements
- Removed some inconsistencies
- Improve inheritance cast of records with conflicting column names
Small fixes
Just small fixes for geometries and associations.
A bunch of new Features
Incompatibility on
- Auxiliary statements
- Enum
How to Upgrade
- Remove any use of cached auxiliary statements from the code, because there's no more caching for those.
- Enums cannot be auto-initiated anymore, ensure to call
enum :column
on the models.
New Features
General fixes and improvements
- Fix issue with Enum and Inheritance
- Fix error with Rails 2.2
- Fix schema dumper trying to export types defined by extensions
Issues fixes and improvements
- Fix issue with base class identification
- Fix problem when converting an interval with a
weeks
part - Fix how Enum are initialized to make sure alternative name works
- Enum improvements
- Inheritance cache improvements
Rails 5.2 support
Adding support to Rails 5.2
Fix cast records with calculations
When using cast_records
with filter, use the join table to filter the models, instead of the base table, allowing calculations like sum
to happen correctly