Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var All []Migration
Functions ¶
Types ¶
type Migration ¶
type Migration interface { // Name returns the name of the migration. Name() string // Apply applies the changes imposed by the migration to the given database (or transaction). Apply(context.Context, *gorm.DB) error // Rollback rolls back the changes imposed by the migration to the given database (or transaction). Rollback(context.Context, *gorm.DB) error }
Migration abstracts away the logic of a migration.
Click to show internal directories.
Click to hide internal directories.