add photos to seeds #1109
coveralls
commented
Dec 1, 2016
•
coveralls
commented
Dec 1, 2016
•
coveralls
commented
Dec 2, 2016
•
|
@Br3nda after talking to @CloCkWeRX i learned that having a table that has fake foreign keys to multiple tables based on a column is a crappy database performance thing so we should stick to ordinary join tables. Thus, did not do |
|
@maco the creation of table |
| @@ -355,6 +355,14 @@ | ||
| t.integer "product_id" | ||
| end | ||
| + create_table "photo_mappings", force: :cascade do |t| |
coveralls
commented
Dec 2, 2016
•
coveralls
commented
Dec 3, 2016
coveralls
commented
Dec 3, 2016
coveralls
commented
Dec 3, 2016
•
|
Hey, crappy is too strong of a word. if we take a db centric view, its bad.
if we take an oop/orm view, its good. Was highlighting tradeoffs.
…
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Fixes #495
untested, waiting on #1106 and #1107