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
Written by Swapnil Abnave
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Tdd
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#