Skip to content
This repository was archived by the owner on Mar 15, 2021. It is now read-only.

Conversation

@seanlinsley
Copy link

@seanlinsley seanlinsley commented May 8, 2018

This repo doesn't have the Rails 5.0 & 5.1 commits that others had already contributed, so I merged https://github.com/nickgal/postgres_ext/tree/as_rails-5-1. I'm currently working on 5.2 support.

CC @aschuster3 @nickgal @shaneog

shaneog and others added 9 commits July 11, 2016 16:04
Set up testing environment.
Rails 5 (and thus ActiveRecord 5) supports only Ruby 2.2.2+ so we
exclude lower versions from AR5 testing.
Organise active_record code by gem version number also.
ActiveRecord 5 uses the provided model's namespace instead of the CTEs.
So we explicitly specify the table whose id field we want to use.
…arning

This prevents the following warning from appearing:

```
DEPRECATION WARNING: table_exists? is deprecated and will be removed
from Rails 5.1 (use #data_source_exists? instead)
```
Fix deprecation warnings about alias_method_chain
@seanlinsley
Copy link
Author

🤔 Arel is pretty hard to understand. I'd definitely appreciate help with this :octocat:

@seanlinsley
Copy link
Author

IIRC the problems I was having here were related to bind parameters. I just discovered that ActiveRecord::Base.connection.unprepared_statement{ ... } lets you disable bind parameters, so that might help with debugging.

@seanlinsley
Copy link
Author

For anyone subscribed to this PR, there's a new gem that you might want to use instead: https://github.com/danmcclain/postgres_ext/issues/3

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants