Golang Tutorial: How to Migrate Your Database
Too Long; Didn't Read
Golang has been gaining popularity since its inception. It is a simple language with performance as good as a low-level language like C++. Acceptance of Golang in web development is booming at a high rate. It handles database migrations wonderfully by making them part of your code. GORM is the most popular ORM for Go. It has a lot of similarities with Active Record with the same name as Active Record. To create a table you create a new migration that looks like this: To remove a column you need to explicitly write code like this.