lib/torque/postgresql/adapter/schema_dumper.rb in torque-postgresql-2.0.1 vs lib/torque/postgresql/adapter/schema_dumper.rb in torque-postgresql-2.0.2
- old
+ new
@@ -65,15 +65,18 @@
table_dump.gsub!(/do \|t\|\n end/, '')
stream.print table_dump
end
end
- # dump foreign keys at the end to make sure all dependent tables exist.
+ # Dump foreign keys at the end to make sure all dependent tables exist.
if @connection.supports_foreign_keys?
sorted_tables.each do |tbl|
foreign_keys(tbl, stream) unless ignored?(tbl)
end
end
+
+ # Scenic integration
+ views(stream) if defined?(::Scenic)
end
# Dump user defined types like enum
def user_defined_types(stream)
types = @connection.user_defined_types('e')