Class: Groonga::Schema::TableRenameDefinition
- Inherits:
-
Object
- Object
- Groonga::Schema::TableRenameDefinition
- Includes:
- Path
- Defined in:
- lib/groonga/schema.rb
Instance Method Summary collapse
- #define ⇒ Object
-
#initialize(current_name, new_name, options = {}) ⇒ TableRenameDefinition
constructor
A new instance of TableRenameDefinition.
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, ={}) @current_name = current_name @new_name = new_name @options = end |
Instance Method Details
#define ⇒ Object
1449 1450 1451 1452 |
# File 'lib/groonga/schema.rb', line 1449 def define table = current_table table.rename(@new_name) end |