Class: DbDiff::Delta::DropView
- Inherits:
-
DbDiff::Delta
- Object
- DbDiff::Delta
- DbDiff::Delta::DropView
- Defined in:
- lib/dbdiff/delta.rb
Instance Attribute Summary
Attributes inherited from DbDiff::Delta
Instance Method Summary collapse
Methods inherited from DbDiff::Delta
Constructor Details
This class inherits a constructor from DbDiff::Delta
Instance Method Details
#process(database) ⇒ Object
282 283 284 |
# File 'lib/dbdiff/delta.rb', line 282 def process(database) database.views.delete(element) end |
#sql ⇒ Object
278 279 280 |
# File 'lib/dbdiff/delta.rb', line 278 def sql return "DROP VIEW `%s`" % element.name end |