# Reset after running migration script?

**URL:** <https://meta.discourse.org/t/reset-after-running-migration-script/281224>\
**Category:** Migration\
**Tags:** vanilla\
**Created:** [October 5, 2023, 10:29pm UTC](https://meta.discourse.org/t/reset-after-running-migration-script/281224 "2023-10-05T22:29:38Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)\
**Post date:** [October 9, 2023, 12:17am UTC](https://meta.discourse.org/t/reset-after-running-migration-script/281224/5 "2023-10-09T00:17:46Z")

</div>

sv stop unicorn  
rake db:drop db:create db:migrate

You have to set an env variable to drop the database, but it will tell you what it is.

---

_[View the full topic](https://meta.discourse.org/t/reset-after-running-migration-script/281224)._
