Create Migration File In #RubyOnRails by Prakashraj cc @CsharpCorner
A migration is a set of database instructions. Those instructions are ruby code, which migrates our database from one state into another. In our migrations we can create a table, add a column, change the name of a column, and drop a table and much more. A migration will contain both the instructions for moving to a new state and also instructions for moving back down to the previous state. If migration has instructions to create a table when moving forward or up, it will also include instructions to allow it to move back down by dropping the table. We can migrate our database to the newest version or migrate back to a previous version.