Torque PostgreSQL v4.1 release

My gem that shortens the distance between your Rails application and PostgreSQL advanced features just got more robust! This release adds:

  • Rails 8.1 support.
  • Struct: back any json/jsonb column with an ActiveModel class: typed, cast, validated and tracked attributes, while the column stays plain JSON. Arrays of documents included.
  • Composite Types: create_composite_type with the same DSL as create_table, nested types, proper schema dump ordering, and columns that come back as objects you can query normally.
  • LTree / LQuery: paths as plain Arrays of labels, path operations in Ruby, and the right tree operator (= or ~) picked automatically when querying.
  • Table inheritance reworked: no more opt-in, records always come back as their real class, plus sync_inheritance_features to spread primary key, indexes, unique/exclusion constraints and foreign keys from a parent down to its children.

All features can be enabled or disabled as desired. Plus, they are all fully compatible with schema.rb

There’s also a brand new docs website coming in soon! Keep an eye on https://torque.dev/

Repo: GitHub - crashtech/torque-postgresql: Add support to complex resources of PostgreSQL, like data types, array associations, auxiliary statements (CTE), and full-text search (FTS) · GitHub Feedback and issues are very welcome :folded_hands: