Method: ActiveRecord::ConnectionAdapters::SchemaStatements#data_sources
- Defined in:
- activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb
#data_sources ⇒ Object
Returns the relation names useable to back Active Record models. For most adapters this means all #tables and #views.
35 36 37 38 39 |
# File 'activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb', line 35 def data_sources query_values(data_source_sql, "SCHEMA") rescue NotImplementedError tables | views end |