You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: postgres.rb
    path of file: ./repos/searchcraft/lib/ext/scenic/adapters
    
    the code of the file until where you have to start completion: # Features of Scenic not available in v1.7.0
class Scenic::Adapters::Postgres
  # True if supplied relation name 
    
  def populated?(name)
    raise_unless_materialized_views_supported

    schemaless_name = name.split(".").last

    sql = "SELECT relispopulated FROM pg_class WHERE relname = '#{schemaless_name}'"
    relations = execute(sql)

    if relations.count.positive?
      relations.first["relispopulated"].in?(["t", true])
    else
      false
    end