parent ed558a0e
......@@ -183,7 +183,7 @@ func (c *Column) SetPrimary(m *Migration) *Column {
//AddColumnsToUnique adds the columns to Unique Struct
func (unique *Unique) AddColumnsToUnique(columns ...*Column) *Unique {
unique.Columns = append(unique.Columns, column...)
unique.Columns = append(unique.Columns, columns...)
return unique
}
......@@ -191,7 +191,7 @@ func (unique *Unique) AddColumnsToUnique(columns ...*Column) *Unique {
//AddColumns adds columns to m struct
func (m *Migration) AddColumns(columns ...*Column) *Migration {
m.Columns = append(m.Columns, column...)
m.Columns = append(m.Columns, columns...)
return m
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment