Skip to content

Instantly share code, notes, and snippets.

@stevencch99
Created June 9, 2019 08:20
Show Gist options
  • Save stevencch99/8fed4443ce1b421d1a5829b3e2bfbdbd to your computer and use it in GitHub Desktop.
Save stevencch99/8fed4443ce1b421d1a5829b3e2bfbdbd to your computer and use it in GitHub Desktop.
create_table "projects", force: :cascade do |t|
t.string "name"
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
t.integer "tasks_count", default: 0
end
create_table "tasks", force: :cascade do |t|
t.string "name"
t.integer "project_id"
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
t.index ["project_id"], name: "index_tasks_on_project_id"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment