Module: HairTrigger::SchemaDumper::TrailerWithTriggersSupport

Defined in:
lib/hair_trigger/schema_dumper.rb

Instance Method Summary collapse

Instance Method Details

#trailer(stream) ⇒ Object



11
12
13
14
15
16
17
18
# File 'lib/hair_trigger/schema_dumper.rb', line 11

def trailer(stream)
  orig_show_warnings = Builder.show_warnings
  Builder.show_warnings = false # we already show them when running the migration
  triggers(stream)
  super
ensure
  Builder.show_warnings = orig_show_warnings
end