Skip to main content

load_migrations_from_dir

Function load_migrations_from_dir 

Source
pub fn load_migrations_from_dir(dir: &Path) -> Result<Vec<Migration>>
Expand description

Load user migrations from a directory.

Migrations should be named like:

  • 0001_create_users.sql
  • 0002_add_posts.sql

They are sorted alphabetically and executed in order.