Fix activerecord 6.1.4 compatibility issue with postgresql cte

This commit is contained in:
Pirate Praveen 2021-09-08 22:56:40 +05:30
parent 6967805d17
commit 35424cbf81
2 changed files with 16 additions and 0 deletions

View file

@ -0,0 +1,15 @@
Add support for activerecord 6.1.4 using a cherry picked patch
Forwarded: https://github.com/kmurph73/ctes_in_my_pg/commit/eabb5508df56b5dc838547655542a272511af424
--- a/config/initializers/postgresql_cte.rb
+++ b/config/initializers/postgresql_cte.rb
@@ -96,7 +96,7 @@
end
end
- def build_arel(aliases)
+ def build_arel(aliases = nil)
arel = super
build_with(arel) if @values[:with]

View file

@ -30,3 +30,4 @@
0750-fix-relative-paths.patch
0770-remove-capybara-screenshot-rspec.patch
0800-search-binaries-in-path.patch
0810-postgresql-cte-rails-6-1-4.patch