rename static method

String rename(
  1. String from,
  2. String to
)

Rename a table.

from is the current name of the table. to is the new name of the table.

Implementation

static String rename(String from, String to) {
  return DB.connection()!.driver.renameTable(from, to);
}