torque-postgresql
torque-postgresql copied to clipboard
Add support to advanced resources of PostgreSQL, like data types, array associations, and auxiliary statements (CTE)
stringify association key name (so that the associations can be also specified as symbols)
add support for `Fx.configuration.dump_functions_at_beginning_of_schema` see https://github.com/teoljungberg/fx#what-if-i-need-to-use-a-function-as-the-default-value-of-a-column
Since the column `tableoid` is available without the need of extra join or anything, it seems to be faster to use it as the source of inherited table discover. We...
The problem is that when using fixtures for testing, rails disables referential integrity by using table names only. This requires putting all necessary schema names into a *schema_search_path* in `config/database.yml`....
Here is another idea... It is a [known limitation](https://edgeguides.rubyonrails.org/testing.html#fixtures-in-action) that test environment has to use PostgreSQL superuser to be able to disable/enable triggers on fixtures loading. I think it would...
Hey, for some reason, when I update the foreign_key of the collection it does not run the `after_add` callback ```ruby # frozen_string_literal: true require 'torque-postgresql' require 'byebug' require "active_record" require...
I have implemented very rudimentary suport for [multi range](https://www.postgresql.org/docs/current/functions-range.html) type in my app. Some example snippets below. I start to use these types of ranges more and more, as they...
Rails is not smart when the subject is association shortcuts. Something like: ```Ruby class Text < ActiveRecord::Base belongs_to :user has_many :user_comments, through: :user, source: :comments end class User < ActiveRecord::Base...