Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- db := gorm.Open("mysql", ...)
- db.Set("gorm:table_options", "ENGINE=InnoDB")
- db.Set("gorm:table_options", "collation_connection=utf8_general_ci")
- // Migrate the schema
- db.AutoMigrate(&models.Currency{})
- db.AutoMigrate(&models.Rate{})
Add Comment
Please, Sign In to add comment