Skip to content

Commit

Permalink
Changes field name in test data migration
Browse files Browse the repository at this point in the history
  • Loading branch information
stangah committed Mar 6, 2018
1 parent 043d3b2 commit 41d4074
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion migrations/20160808213310_setup_tests2.up.fizz
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ create_table("songs", func(t) {
t.Column("id", "uuid", {"primary":true})
t.Column("u_id", "int", {"null":true})
t.Column("title", "string", {})
t.Column("composer_id", "int", {"null":true})
t.Column("composed_by_id", "int", {"null":true})
})

create_table("composers", func(t) {
Expand Down
2 changes: 1 addition & 1 deletion pop_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ type Song struct {
UserID int `db:"u_id"`
CreatedAt time.Time `json:"created_at" db:"created_at"`
UpdatedAt time.Time `json:"updated_at" db:"updated_at"`
ComposedByID int `json:"composer_id" db:"composer_id"`
ComposedByID int `json:"composed_by_id" db:"composed_by_id"`
ComposedBy Composer `belongs_to:"composer"`
}

Expand Down

0 comments on commit 41d4074

Please sign in to comment.