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
- A migration stored in the filesystem
- A collection of migrations stored in the filesystem.
- A migration stored in memory.
- A collection of migrations stored in memory.
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
toto
. - Create a
Migrations
from a filesystem location. The#[model]
attribute will write migration information to abutane/migrations
directory under the project directory.