Here’s the relevant part of a DB migration to add a books table with a genres field that holds an array of """ For our tags, it will be an array of strings. This let’s us create a single field on a table that holds an array of values. We’ll take advantage of Postgres’ array column type. We’re using Postgres for our application (the default DB for Phoenix applications).
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |