omigrate setup ensures that the database exists and the version table of schema migrations exists, before running up, which runs all the migrations that have not yet been run. Using setup works better in cases where the database has not yet been setup, and works the same in cases when running with an existing DB.
omigrate setup
ensures that the database exists and the version table of schema migrations exists, before runningup
, which runs all the migrations that have not yet been run. Usingsetup
works better in cases where the database has not yet been setup, and works the same in cases when running with an existing DB.