Class: DbDiff::Delta::DropFunction
- Inherits:
-
DbDiff::Delta
- Object
- DbDiff::Delta
- DbDiff::Delta::DropFunction
- 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
315 316 317 |
# File 'lib/dbdiff/delta.rb', line 315 def process(database) database.functions.delete(element) end |
#sql ⇒ Object
311 312 313 |
# File 'lib/dbdiff/delta.rb', line 311 def sql return "DROP FUNCTION `%s`" % element.name end |