Method: ActiveRecord::ConnectionAdapters::SchemaStatements#views
- Defined in:
- activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb
#views ⇒ Object
Returns an array of view names defined in the database.
67 68 69 |
# File 'activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb', line 67 def views query_values(data_source_sql(type: "VIEW"), "SCHEMA") end |