1
0
mirror of https://github.com/astaxie/beego.git synced 2024-11-25 14:10:55 +00:00

Fixing typo

Signed-off-by: Gnanakeethan Balasubramaniam <gnanakeethan@gmail.com>
This commit is contained in:
Gnanakeethan Balasubramaniam 2017-07-06 14:58:40 +05:30
parent ed558a0e70
commit c1ba11f531
No known key found for this signature in database
GPG Key ID: 24924006ABA72F31

View File

@ -183,7 +183,7 @@ func (c *Column) SetPrimary(m *Migration) *Column {
//AddColumnsToUnique adds the columns to Unique Struct //AddColumnsToUnique adds the columns to Unique Struct
func (unique *Unique) AddColumnsToUnique(columns ...*Column) *Unique { func (unique *Unique) AddColumnsToUnique(columns ...*Column) *Unique {
unique.Columns = append(unique.Columns, column...) unique.Columns = append(unique.Columns, columns...)
return unique return unique
} }
@ -191,7 +191,7 @@ func (unique *Unique) AddColumnsToUnique(columns ...*Column) *Unique {
//AddColumns adds columns to m struct //AddColumns adds columns to m struct
func (m *Migration) AddColumns(columns ...*Column) *Migration { func (m *Migration) AddColumns(columns ...*Column) *Migration {
m.Columns = append(m.Columns, column...) m.Columns = append(m.Columns, columns...)
return m return m
} }