I found it online and I don't really understand what it's doing. any advice much appreciated.
here is the command again
> rake db:schema:load RAILS_ENV=test
advice much appreciated.
Answers to your questions
I found it online and I don't really understand what it's doing. any advice much appreciated.
here is the command again
> rake db:schema:load RAILS_ENV=test
advice much appreciated.
Let’s break it down a bit
1) RAILS_ENV=test
This implies that whatever you do, it will affect the test environment – including the test database server.
ie all database interactions are now with respect to the test database server.
2) rake db:schema:load
Loads the schema ( the database structure ) into the (test) database in one go.
This is useful for quickly cloning the database structure used during development and testing against it when using integration tests etc.