Reference
< Object
The CQL::Migrator
class is responsible for managing database migrations. It provides methods to apply, roll back, and redo migrations, as well as list applied and pending migrations.
Applies pending migrations.
@return [Nil]
Example:
Rolls back the last migration.
@return [Nil]
Example:
Reapplies the last migration by rolling it back and applying it again.
@return [Nil]
Example:
Lists the migrations that have already been applied.
@return [Array(String)] The list of applied migrations.
Example:
Lists the migrations that have not yet been applied.
@return [Array(String)] The list of pending migrations.
Example: