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.



1443
1444
1445
1446
1447
# File 'lib/groonga/schema.rb', line 1443

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

Instance Method Details

#defineObject



1449
1450
1451
1452
# File 'lib/groonga/schema.rb', line 1449

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