activerecord-postgres-earthdistance icon indicating copy to clipboard operation
activerecord-postgres-earthdistance copied to clipboard

replace table_exists? with data_source_exists?

Open isaiah opened this issue 7 years ago • 1 comments

Since Rails5, table_exists? only works for tables, which makes acts_as_geolocated fail on materialized views.

http://guides.rubyonrails.org/5_0_release_notes.html#active-record-deprecations

isaiah avatar Apr 18 '18 15:04 isaiah

Thanks for the PR @isaiah

Could you add a test case that would fail in the current code base? Creating a materialized view in the spec_helper should be quite straightforward.

diogob avatar Apr 18 '18 18:04 diogob