Module: Listable::ConnectionAdapters::PostgreSQLExtensions
- Includes:
- ConcatenationMethods::PipeOperator
- Defined in:
- lib/listable/connection_adapters.rb
Instance Method Summary collapse
Methods included from ConcatenationMethods::PipeOperator
Instance Method Details
#views ⇒ Object
41 42 43 44 45 46 47 |
# File 'lib/listable/connection_adapters.rb', line 41 def views query(" SELECT table_name\n FROM INFORMATION_SCHEMA.views\n WHERE table_schema = ANY (current_schemas(false))\n SQL\nend\n", 'SCHEMA').map { |row| row[0] } |