Releases: crashtech/torque-postgresql
Releases · crashtech/torque-postgresql
Small fixes
- Sort enums while writing the schema dump
- Added extra tests for insurance
Rails 6.0 and Ruby 2.7 compatibility
This version enables the gem to work with Rails 6 and it also removes warnings regarding Ruby 2.7 named argument.
Fix multiple join sources from the same CTE
Clear the list of join sources every time that a CTE is built, avoiding wrong information or duplicated ones.
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.keysorModel.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 :columnon 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