Module: Foreigner::SchemaDumper::InstanceMethods
- Defined in:
- lib/foreigner/schema_dumper.rb
Instance Method Summary collapse
Instance Method Details
#tables_with_foreign_keys(stream) ⇒ Object
11 12 13 14 15 16 17 18 19 20 21 22 |
# File 'lib/foreigner/schema_dumper.rb', line 11 def tables_with_foreign_keys(stream) @connection.tables.sort.each do |table| remove_foreign_keys(table, stream) end tables_without_foreign_keys(stream) @connection.tables.sort.each do |table| primary_keys(table, stream) end @connection.tables.sort.each do |table| foreign_keys(table, stream) end end |