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( <<-SQL SELECT * FROM information_schema.tables WHERE table_schema = 'public' SQL ).to_a.map{ |r| r['table_name'] } end |