Purge or recreate a Ruby on Rails database

前端 未结 19 1261
清酒与你
清酒与你 2020-11-28 17:01

I have a dev Ruby on Rails database full of data. I want to delete everything and rebuild the database. I\'m thinking of using something like:

rake db:recrea         


        
19条回答
  •  旧巷少年郎
    2020-11-28 17:35

    You can use db:reset - for run db:drop and db:setup or db:migrate:reset - which runs db:drop, db:create and db:migrate.

    dependent at you want to use exist schema.rb

提交回复
热议问题