method

rename_table

Importance_1
v7.1.3.2 - Show latest stable - 0 notes - Class: SchemaStatements
rename_table(table_name, new_name, **options) public

Renames a table. Also renames a table’s primary key sequence if the sequence name exists and matches the Active Record default.

Example:

rename_table('octopuses', 'octopi')
Show source
Register or log in to add new notes.