Question and answer is powered by AnsPress.io
I am unable to understand that why people use migration, where I can directly change the table and columns from the database. Can anyone tell me why we use migration??
Without migrations how will we manage to write tests?
The basic idea of test is that before running every test, the database should be in a particular state which we can control and then assert the result that we expect.