Commit Graph

2 Commits (e4cfe4b3db2e71cef43c7b8f7ce42ba46f7aa0b5)

Author SHA1 Message Date
Nick Schonning 84cc805cae
Enable Style/FrozenStringLiteralComment for specs (#23790) 3 years ago
Claire 741d0952b1
Improve account counters handling (#15913)
* Improve account counters handling

* Use ActiveRecord::Base::sanitize_sql to pass values instead of interpolating them

Keep using string interpolation for `key` as it is safe and using
“ActiveRecord::Base::sanitize_sql_hash_for_assignment” would require stitching
bits of SQL in a way that is not more easily checked for safety.

* Add migration hook to catch PostgreSQL versions earlier than 9.5
5 years ago