[RAILS] Database command for migration file environment

I'm posting it for output.

For development

$rails db:migrate

For production

$rails db:migrate RAILS_ENV=production

Test

$rails db:migrate RAILS_ENV=test

Recommended Posts

Database command for migration file environment
[Rails] Migration command summary
The migration file is duplicated
docker-compose command list (for Rails)
[rails] Deleted NOFILE migration file
Build Spring for Android 2.0.0 environment
[Rails] Delete the migration file