forked from mirror/gorm
Fix migration tests
This commit is contained in:
parent
e9684db42a
commit
a7e63541fd
|
@ -82,8 +82,8 @@ func (b BigEmail) TableName() string {
|
|||
}
|
||||
|
||||
func TestAutoMigration(t *testing.T) {
|
||||
DB.AutoMigrate(Address{})
|
||||
if err := DB.Table("emails").AutoMigrate(BigEmail{}).Error; err != nil {
|
||||
DB.AutoMigrate(&Address{})
|
||||
if err := DB.Table("emails").AutoMigrate(&BigEmail{}).Error; err != nil {
|
||||
t.Errorf("Auto Migrate should not raise any error")
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue