Changelog History
Page 2
-
v5.54.0 Changes
March 01, 2022- โ Add enum plugin for treating columns as enums in a model (jeremyevans) (#1839)
-
v5.53.0 Changes
February 01, 2022Make Dataset#_sql_comment private when using the Database sql_comments extension (jeremyevans)
๐ Fix prepared statements in the mysql2 adapter to reuse native prepared statements (jeremyevans) (#1832)
๐ Support H2 version 2+ in the jdbc/h2 adapter (jeremyevans) (#1817)
๐ Work around active_support breaking subclasses plugin on Ruby <3.1 (jeremyevans) (#1816)
๐ Fix error handling if trying to setup column_encryption plugin without keys (jeremyevans) (#1815)
-
v5.52.0 Changes
January 01, 2022๐ Use Class#subclasses if available in the subclasses plugin, instead of a custom Model.subclasses accessor (jeremyevans)
โ Add Model.descendants and .freeze_descendants to subclasses plugin (jeremyevans)
๐ Avoid use of deprecated Refinement#include on Ruby 3.1+ (jeremyevans)
๐ Add date_parse_input_handler extension for custom handling of input to date parsing methods (jeremyevans)
Make postgres adapter respect Database#default_string_column_size (jeremyevans)
๐ Make pg_interval extension work with ActiveSupport 7.0 (jeremyevans)
0๏ธโฃ Make :ruby_default schema entry for type: :datetime respect Sequel.datetime_class (jeremyevans)
Make alter_table drop_constraint have an effect on MySQL 8.0.19+ (jeremyevans)
๐ Make mysql adapter support ruby-mysql 3 API (jeremyevans) (#1795)
๐ Make mysql adapter no longer use connection's server_version, since it isn't accurate when using the ruby-mysql driver (jeremyevans)
โ Add sql_comments plugin for automatically including comments on queries generated by model class, instance, and dataset methods (jeremyevans)
๐ Make sql_comments Database extension support Database#with_comments, for automatically including comments for queries executed inside the block (jeremyevans)
๐ Fix sql_comments extension to not modify cached SQL for a dataset (jeremyevans)
-
v5.51.0 Changes
December 01, 2021Make eager loading via tactical_eager_loading no longer modify objects who already have a cached value for the association (jeremyevans)
๐ฏ Make association cloning handle cases where clone association sets different :class option than cloned association (jeremyevans)
๐ Make column schema entries on MySQL include an :extra entry for the Extra column in DESCRIBE output (bschmeck) (#1791)
โก๏ธ Update mock PostgreSQL adapter to default to PostgreSQL 14 instead of PostgreSQL 9.5 (jeremyevans)
๐ Support Dataset#with_recursive :search and :cycle options on PostgreSQL 14+ for result ordering and cycle detection (jeremyevans)
โ Avoid method redefined verbose mode warnings in lazy_attributes plugin (jeremyevans)
-
v5.50.0 Changes
November 01, 2021Make Migrator :allow_missing_migration_files also allow down migrations where the current database version is greater than the last migration file version (francisconeves97) (#1789)
Fix Model#freeze in composition, serialization, and serialization_modification_detection plugins to return self (jeremyevans) (#1788)
๐ Fix typecasting of lazy columns when using lazy_attributes plugin in model where dataset selects from subquery (jeremyevans)
๐ง Add :before_preconnect Database option, for configuring extensions loaded via :preconnect_extensions (MarcPer, jeremyevans) (#1786)
๐ Change Dataset#columns! to use a LIMIT 0 query instead of a LIMIT 1 query (jeremyevans)
๐ฒ Add sql_log_normalizer extension for normalizing logged SQL, helpful for analytics and sensitive data (jeremyevans)
๐ Add support for range_merge, multirange, and unnest, and PGMultiRange#op to pg_range_ops extension (jeremyevans)
โ Add pg_multirange extension with support for PostgreSQL 14+ multirange types (jeremyevans)
-
v5.49.0 Changes
October 01, 2021Switch block_given? usage to defined?(yield) (jeremyevans)
๐ Support table aliases for JOIN USING columns on PostgreSQL 14+ (jeremyevans)
๐ Support calling PostgreSQL procedures without arguments (jeremyevans)
Support hstore subscripts in pg_hstore_ops on PostgreSQL 14+, for updating only part of an hstore value (jeremyevans)
Support JSONB subscripts in pg_json_ops on PostgreSQL 14+, for updating only part of a JSONB value (jeremyevans)
Support SQL::Expression#sequel_ast_transform for custom AST transforms on arbitrary expressions (jeremyevans)
โ Add Database#create_trigger :replace option on PostgreSQL 14+ for CREATE OR REPLACE TRIGGER (jeremyevans)
๐ Make auto_validations plugin automatically setup no_null_byte validations (jeremyevans)
Add Model#validates_no_null_byte to validation_helpers plugin (jeremyevans)
-
v5.48.0 Changes
September 01, 2021๐ Make the unused_associations plugin association reflection tracking work correctly when combining coverage runs (jeremyevans)
Add Database#like_without_collate on MSSQL, to avoid using COLLATE on LIKE arguments, which can significantly improve performance (jeremyevans)
โ Add Model::Errors#full_message private method for easiest i18n support for errors with multiple attributes (jeremyevans) (#1779)
-
v5.47.0 Changes
August 01, 2021๐ Make the unused_associations plugin track access to association reflections to determine whether associations are used (jeremyevans)
Support :db option for join tables in {many,one}_through_many to use a separate query for each join table (jeremyevans)
Support :join_table_db option for many_to_many/one_through_one associations, to use a separate query for the join table (jeremyevans)
Support :allow_eager_graph and :allow_filtering_by association options (jeremyevans)
โ Add Database#rename_tables on MySQL, for renaming multiple tables in a single call (nick96) (#1774)
๐ Support Dataset#returning on SQLite 3.35+ (jeremyevans)
-
v5.46.0 Changes
July 01, 2021โ Add unused_associations plugin, for determining which associations and association methods are not used (jeremyevans)
๐ Make nil :setter/:adder/:remover/:clearer association options not create related methods (jeremyevans)
-
v5.45.0 Changes
June 01, 2021๐ Fix handling of NULL values in boolean columns in the ODBC adapter (jeremyevans) (#1765)
Add auto_validations_constraint_validations_presence_message plugin for auto_validations/constraint_validations presence message integration (jeremyevans)
๐ Support Dataset#with :materialized option on SQLite 3.35+ for [NOT] MATERIALIZED (jeremyevans)
๐ Use ALTER TABLE DROP COLUMN for dropping columns on SQLite 3.35+ (jeremyevans)