From 51af30ced1e8ed03ce445cf0e5970c0983ea7c8d Mon Sep 17 00:00:00 2001 From: Caleb Hearth Date: Tue, 19 Nov 2024 17:00:31 -0700 Subject: [PATCH] Stringify name --- lib/scenic/adapters/postgres.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/scenic/adapters/postgres.rb b/lib/scenic/adapters/postgres.rb index 2faa4c34..b182ac32 100644 --- a/lib/scenic/adapters/postgres.rb +++ b/lib/scenic/adapters/postgres.rb @@ -238,7 +238,7 @@ def refresh_materialized_view(name, concurrently: false, cascade: false) def populated?(name) raise_unless_materialized_views_supported - schemaless_name = name.split(".").last + schemaless_name = name.to_s.split(".").last sql = "SELECT relispopulated FROM pg_class WHERE relname = '#{schemaless_name}'" relations = execute(sql)