Yashu Mittal Posted on Feb 9, 2020 • Edited on Feb 9, 2020 How to version control the database? #database #git #question #discuss Top comments (3) Subscribe Submit Preview Dismiss Collapse Expand Mohammed Samgan Khan Mohammed Samgan Khan Mohammed Samgan Khan Follow Love to code with a DRY KISS Email mohdsamgankhan@gmail.com Location USA Education B. Tech in CS Work Freelancer Joined Apr 23, 2019 • Feb 9 '20 Dropdown menu Copy link Hide Migrations Mate Migrations. Collapse Expand Yashu Mittal Yashu Mittal Yashu Mittal Follow Open source Location India Work Full Stack Engineer Joined Aug 20, 2018 • Feb 9 '20 Dropdown menu Copy link Hide Like, new file for each migration? Or replace the content of single file. Collapse Expand Mohammed Samgan Khan Mohammed Samgan Khan Mohammed Samgan Khan Follow Love to code with a DRY KISS Email mohdsamgankhan@gmail.com Location USA Education B. Tech in CS Work Freelancer Joined Apr 23, 2019 • Feb 9 '20 Dropdown menu Copy link Hide see migration is a way to manage DB with the code files. so answering your question yes, each migrations per file. When you tag your code up to a version, those files are also added to that tag. run migrate to Make DB changes and revert back to Undo. Code of Conduct • Report abuse
Top comments (3)
Migrations Mate Migrations.
Like, new file for each migration?
Or replace the content of single file.
see migration is a way to manage DB with the code files.
so answering your question yes, each migrations per file.
When you tag your code up to a version, those files are also added to that tag.
run migrate to Make DB changes and revert back to Undo.