Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Migration ¶
type Migration struct { gorm.Model Name string `gorm:"type:varchar(100);unique_index"` Successful bool }
Migration a migration
type MigrationFile ¶
MigrationFile a migration file
type Migrator ¶
type Migrator struct { DB *gorm.DB Migrations []Migration MigrateUp bool Files []MigrationFile }
Migrator migrates
func NewMigrator ¶
NewMigrator returns a new Migrator
func (*Migrator) RunMigrations ¶
RunMigrations runs all our migrations (if they haven't been run successfully)
Click to show internal directories.
Click to hide internal directories.