Class: Nandi::Instructions::DropTable
- Inherits:
-
Object
- Object
- Nandi::Instructions::DropTable
- Defined in:
- lib/nandi/instructions/drop_table.rb
Instance Attribute Summary collapse
-
#table ⇒ Object
readonly
Returns the value of attribute table.
Instance Method Summary collapse
-
#initialize(table:) ⇒ DropTable
constructor
A new instance of DropTable.
- #lock ⇒ Object
- #procedure ⇒ Object
Constructor Details
#initialize(table:) ⇒ DropTable
Returns a new instance of DropTable.
8 9 10 |
# File 'lib/nandi/instructions/drop_table.rb', line 8 def initialize(table:) @table = table end |
Instance Attribute Details
#table ⇒ Object (readonly)
Returns the value of attribute table.
6 7 8 |
# File 'lib/nandi/instructions/drop_table.rb', line 6 def table @table end |
Instance Method Details
#lock ⇒ Object
16 17 18 |
# File 'lib/nandi/instructions/drop_table.rb', line 16 def lock Nandi::Migration::LockWeights::ACCESS_EXCLUSIVE end |
#procedure ⇒ Object
12 13 14 |
# File 'lib/nandi/instructions/drop_table.rb', line 12 def procedure :drop_table end |