Update: missed to call DDLSpec in Down migration

Signed-off-by: Gnanakeethan Balasubramaniam <gnanakeethan@gmail.com>
This commit is contained in:
Gnanakeethan Balasubramaniam 2017-07-16 07:30:53 +05:30
parent d58ad2ee36
commit fc55c2b57c
No known key found for this signature in database
GPG Key ID: 24924006ABA72F31
1 changed files with 1 additions and 0 deletions

View File

@ -99,6 +99,7 @@ func (m *Migration) Up() {
// Down implement in the Inheritance struct for down
func (m *Migration) Down() {
m.DDLSpec()
switch m.ModifyType {
case "alter":
m.ModifyType = "reverse"