Polymorphic Relationship
# db/migrate
Picture
t.integer :imageable_id
t.string :imageable_type
OR
t.references :imageable, polymorphic: true, index: true
# models
{ | |
"bold_folder_labels": true, | |
"caret_style": "phase", | |
"color_scheme": "Packages/User/Eiffel (SL).tmTheme", | |
"draw_white_space": "all", | |
"fade_fold_buttons": false, | |
"font_size": 12, | |
"highlight_line": true, | |
"highlight_modified_tabs": true, | |
"ignored_packages": |
Polymorphic Relationship
# db/migrate
Picture
t.integer :imageable_id
t.string :imageable_type
OR
t.references :imageable, polymorphic: true, index: true
# models
[ | |
{ | |
"title": "Elixir & Phoenix in Production", | |
"videoUrl": "https://embedwistia-a.akamaihd.net/deliveries/28fb24ee5c38509d8726d4214e65d1420c6e775c/file.mp4", | |
"minutes": "18", | |
"tags": [ | |
"Foundations", | |
"Testing" | |
], | |
"description": "Elixir & Phoenix, so hot right now! On this week’s episode we’ll take a look at some of the great features of both Elixir and Phoenix through the lens of Bamboo, a library for sending emails in Phoenix apps, recently released by thoughtbot...", |
:b spec/ => recent files in buffer
:buffers => recently opened files
:Unlink => Delete files
:registers; "6p => print sixth item in clipbard
zzCenter the current line within the window
ztBring the current line to the top of the window
zbBring the current line to the bottom of the window
ctrl+w, T = open pane in a new tab
C-b space
=> Swaps veritcal/horizontal
Search with "/" and "?"
react-native-git-upgrade
yarn upgrade interactive
/Users/janedo/Library/Android/sdk/tools/emulator -list-avds
and then /Users/janedoe/Library/Android/sdk/tools/emulator -avd DEVICE_TYPE -netdelay none -netspeed full
react-native run-android
. May need to create an android/local.properties file