Class: Nandi::Instructions::DropTable

Inherits:
Object
  • Object
show all
Defined in:
lib/nandi/instructions/drop_table.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#tableObject (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

#lockObject



16
17
18
# File 'lib/nandi/instructions/drop_table.rb', line 16

def lock
  Nandi::Migration::LockWeights::ACCESS_EXCLUSIVE
end

#procedureObject



12
13
14
# File 'lib/nandi/instructions/drop_table.rb', line 12

def procedure
  :drop_table
end