mysql - Why does Cucumber drop tables if schema.rb is not present? -


i have rails 4 app uses external db don't control. there no schema or migration. anyway, create model , use db setting table_name in model.

when run cucumber drops db tables!? idea why , how avoid it?

$ bundle exec cucumber  running via spring preloader in process 18865  .../db/schema.rb doesn't exist yet. run `rake  db:migrate` create it, try again. if not intend use  database, should instead alter  .../config/application.rb limit frameworks  loaded. 

after db empty, no tables.

you should still able dump schema locally if activerecord connecting db.

rake db:schema:dump 

Comments

Popular posts from this blog

sublimetext3 - what keyboard shortcut is to comment/uncomment for this script tag in sublime -

java - No use of nillable="0" in SOAP Webservice -

ubuntu - Laravel 5.2 quickstart guide gives Not Found Error -