[RUBY] [Team development] Migration update work

Overview

DB modifications may occur during team development! !! If you update it easily, the server may go wrong. ?? ?? Annoying the team: confounded: I was afraid to update it too, but if I followed the steps below, it worked fine: relaxed:

Implementation method

$rake db:drop
 #Delete all DB information! !! Registered user information will also be deleted!
$rake db:create
 #DB update
$rake db:migrate
 #My Great
$rake db:migrate:status
 #Make sure you have properly migrated

By the way, ... If you have created categories etc. in a text editor, please do it after migrating the code below as well! !!

$rake db:seed

This will update the DB OK: laughing: This method also deletes the registered user information, so you need to register again!

References

https://qiita.com/parsetree/items/e9b08c6b11f762b949de

Recommended Posts

[Team development] Migration update work
Team development using Git (eclipse edition)