Rails Database Commands

Rails - Database Commands

Create a Database
Creates database(s) for the current Rails environment. Rails defaults to the development and test databases, in the off chance RAIL_ENV is not specified.
Last Updated on JAN 12 2021
Create All Databases
Create a database for all Rails environments.
Last Updated on JAN 12 2021
Drop a Database
Drops database(s) for the current Rails environment. Rails defaults to the development and test databases, in the off chance RAIL_ENV is not specified.
Last Updated on JAN 12 2021
Drop All Databases
Drop databases for all Rails environments.
Last Updated on JAN 12 2021
Run Database Migrations
Runs all migrations that haven't ran yet, for the current Rails environment. Rails defaults to the development in the off chance RAIL_ENV is not specified.
Last Updated on JAN 12 2021
Copy Engine Migrations
This will copy all Rails engine migrations to the main_app.
Last Updated on JAN 12 2021