These are chat archives for jinzhu/gorm

27th
Aug 2015
Dan Hardman
@danhardman
Aug 27 2015 10:26
Could anyone link me to some documentation on managing migrations? I keep seeing db.AutoMigrate(...) being used in the main.go file and I want to see how people are doing it in larger apps or whether they avoid using db.AutoMigrate() and have manual migrations instead
Jinzhu
@jinzhu
Aug 27 2015 10:27
Some people put AutoMigrate into another file, and run it manually.
Dan Hardman
@danhardman
Aug 27 2015 10:30
Yeah I think that's probably what I'd do. The only experience I have from migrations is from using Laravel's migrations. Could you give a bit more detail on them in how they work with GORM? Can I rollback migrations, can I see what changes have been made?