Skip to main content

is_id

Function is_id 

Source
pub fn is_id(word: &str) -> bool
Expand description

Whether word is a migration identifier.

An identifier is the UTC second the archive opened, %Y%m%dT%H%M%SZ, and -<n> from 2 up where an earlier archive took that second. Nothing else can name a workspace, so an identifier never reaches outside the target’s migrations directory.