Last Updated: February 25, 2016
·
405
· swapnilabnave

AR with native SQL structure

Load test DB from structure.sql

RAILS_ENV=test rake db:drop db:create db:structure:load

or…

RAILS_ENV=test rake db:drop db:create db:migrate

To dump it to db/structure.sql

rake db:structure:dump