Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AutoMigrate ¶
AutoMigrate receives table arguments and create or update their table structure in database.
func ResetDBTables ¶
ResetDBTables reset given tables.
Types ¶
type Migratable ¶
Migratable defines interface for implementing post-migration actions such as adding constraints that arent's supported by Gorm's struct tags. This function must be idempotent, since it will most likely be executed multiple times.
Click to show internal directories.
Click to hide internal directories.