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.



1486
1487
1488
1489
1490
# File 'lib/groonga/schema.rb', line 1486

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

Instance Method Details

#defineObject



1492
1493
1494
1495
# File 'lib/groonga/schema.rb', line 1492

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