Class: DbDiff::Delta::DropTable
- Inherits:
-
DbDiff::Delta
- Object
- DbDiff::Delta
- DbDiff::Delta::DropTable
- 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
260 261 262 |
# File 'lib/dbdiff/delta.rb', line 260 def process(database) database.tables.delete(element) end |
#sql ⇒ Object
256 257 258 |
# File 'lib/dbdiff/delta.rb', line 256 def sql "DROP TABLE #{element.name}" end |