DEV Community

Discussion on: Absinthe Journey with Wolfiton or How to Bring the Absinthe Tutorial UP to Date- Part 3 The Walls

Collapse
 
kurisu3 profile image
Kurisu

Nice post to read. Really clear and easy to understand.

About the posts migration file I have a suggestion.
If the “body” column will store string of more than 255 characters length, before running the migration I would suggest to change its type to ":text".
This will allow to store post with unlimited length body in the database. The Post schema however is ok with the type ":string" for the body field.

Collapse
 
wolfiton profile image
wolfiton

I will add an alter table to the migration to change this using a generated migration, tomorrow.

Thanks @kurisusan for the suggestion.