7 lines
137 B
Go

package arn
// Save saves the purchase in the database.
func (purchase *Purchase) Save() {
DB.Set("Purchase", purchase.ID, purchase)
}