Flowdock
method

rename_table

Importance_1
rename_table(name, new_name) public

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

Example:

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