Struct refinery::Migration [−][src]
pub struct Migration { /* fields omitted */ }
Expand description
Represents a schema migration to be run on the database,
this struct is used by the embed_migrations!
macro to gather migration files
and shouldn’t be needed by the user
Implementations
Create an unapplied migration, name and version are parsed from the input_name, which must be named in the format (U|V){1}__{2}.rs where {1} represents the migration version and {2} the name.
Get the Migration Name
Trait Implementations
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
Auto Trait Implementations
impl RefUnwindSafe for Migration
impl UnwindSafe for Migration
Blanket Implementations
Mutably borrows from an owned value. Read more