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.



1445
1446
1447
1448
1449
# File 'lib/groonga/schema.rb', line 1445

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

Instance Method Details

#defineObject



1451
1452
1453
1454
# File 'lib/groonga/schema.rb', line 1451

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