Class: SchemaPlus::Views::Middleware::Dumper::Tables::View

Inherits:
Object
  • Object
show all
Defined in:
lib/schema_plus/views/middleware.rb

Overview

quacks like a SchemaMonkey Dump::Table

Instance Method Summary collapse

Instance Method Details

#assemble(stream) ⇒ Object



20
21
22
23
24
25
26
27
28
# File 'lib/schema_plus/views/middleware.rb', line 20

def assemble(stream)
  heredelim = "END_VIEW_#{name.upcase}"
  stream.puts <<-ENDVIEW
  create_view "#{name}", <<-'#{heredelim}', :force => true
#{definition}
  #{heredelim}

  ENDVIEW
end