You need to use common active record tasks such as create/purge database, dump/load the schema without Rails.
Create a database from a schema
Dump current schema
schema.rb will be placed in the current working directory (check current directory by running
Load the schema into the database
Second parameter can be
:sql depending on the type of the schema file.
Purge the database
DatabaseTasks.root is the directory where your
database file will be searched.
In my case it’s the current working directory.
Need more tasks to run?
bundle open activerecord and read through the