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: database_view_record.rb
    path of file: ./repos/mastodon/app/models/concerns
    
    the code of the file until where you have to start completion: # frozen_string_literal: true

module DatabaseViewRecord
  extend ActiveSupport::Concern

  class_methods do
    def refresh
      Sceni
    
    def refresh
      Scenic.database.refresh_materialized_view(
        table_name,
        concurrently: true,
        cascade: false
      )
    rescue ActiveRecord::StatementInvalid
      Scenic.database.refresh_materialized_view(
        table_name,
        concurrently: false,
        cascade: false
      )
    end