Module butane_core::migrations

source ·
Expand description

For working with migrations. If using the butane CLI tool, it is not necessary to use these types directly.

Modules

  • Abstract representation of a database schema. If using the butane CLI tool, there is no need to use this module. Even if applying migrations without this tool, you are unlikely to need this module.

Structs

Traits

  • Type representing a database migration. A migration describes how to bring the database from state A to state B. In general, the methods on this type are persistent – they read from and write to the filesystem.
  • A migration which can be modified
  • A collection of migrations.

Functions

  • Copies the data in from to to.
  • Create a Migrations from a filesystem location. The #[model] attribute will write migration information to a butane/migrations directory under the project directory.