Class: Groonga::Schema::TableRenameDefinition

Inherits:
Object
  • Object
show all
Includes:
Path
Defined in:
lib/groonga/schema.rb

Instance Method Summary collapse

Methods included from Path

#columns_directory_path, #rmdir_if_available, #tables_directory_path

Constructor Details

#initialize(current_name, new_name, options = {}) ⇒ TableRenameDefinition

Returns a new instance of TableRenameDefinition.



1428
1429
1430
1431
1432
# File 'lib/groonga/schema.rb', line 1428

def initialize(current_name, new_name, options={})
  @current_name = current_name
  @new_name = new_name
  @options = options
end

Instance Method Details

#defineObject



1434
1435
1436
1437
# File 'lib/groonga/schema.rb', line 1434

def define
  table = current_table
  table.rename(@new_name)
end