Method: ForcefulForeignKey::Graph#tables
- Defined in:
- lib/forceful_foreign_key/graph.rb
#tables ⇒ Object
83 84 85 86 87 88 89 90 |
# File 'lib/forceful_foreign_key/graph.rb', line 83 def tables ActiveRecord::Base.connection.execute( " SELECT * FROM information_schema.tables\n WHERE table_schema = 'public'\n SQL\n ).to_a.map{ |r| r['table_name'] }\nend\n" |