gobuffalo / buffalo-auth

Buffalo auth plugin helps adding username password authentication to your app
https://gobuffalo.io
MIT License
41 stars 28 forks source link

Migrations path is incorrect #24

Closed lukasschlueter closed 5 years ago

lukasschlueter commented 5 years ago

Running buffalo g auth puts the migrations to migrations/1540132083054300100_migrations/create_users.down.fizz and migrations/1540132083089396100_migrations/create_users.up.fizz.

They should instead go to migrations/1540132083054300100_create_users.down.fizz (and up respectively) and use the same timestamp.

Working on a fix.

lukasschlueter commented 5 years ago

This might be a windows specific error caused by parts := strings.Split(f.Name(), string(filepath.Separator)) in migrationsTransformer https://github.com/gobuffalo/buffalo-auth/blob/512341a1beca20891c01a237ba731bb4cf7c3d1b/genny/auth/auth.go#L121