module Polymorpheus::SchemaDumper

Public Instance Methods

tables_with_triggers(stream) click to toggle source
# File lib/polymorpheus/schema_dumper.rb, line 10
def tables_with_triggers(stream)
  tables_without_triggers(stream)

  if @connection.respond_to?(:triggers)
    @connection.triggers.collect(&:schema_statement).uniq.each do |statement|
      stream.puts statement
    end
  end

  stream.puts
end