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

routing - AngularJS State management ->load multiple states in one page -

python - GRASS parser() error -

json - Gson().fromJson(jsonResult, Myobject.class) return values in 0's -