Suggest a feature
×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: Text
Posted by: Bruno Marchi
Added: May 19, 2020 3:10 PM
Views: 8
Tags: no tags
  1. create table(:todo_list_items) do
  2.   add :todo_item_id, references(:todo_items)
  3.   add :todo_list_id, references(:todo_lists)
  4.   timestamps()
  5. end