module ActiveRecord::ConnectionAdapters::SchemaStatements

def views

Returns an array of view names defined in the database.
def views
  query_values(data_source_sql(type: "VIEW"), "SCHEMA")
end