Skip to content

Instantly share code, notes, and snippets.

@JuzerShakir
Created October 29, 2021 03:50
Show Gist options
  • Save JuzerShakir/59c293ca10271bab05da61f2874ead6c to your computer and use it in GitHub Desktop.
Save JuzerShakir/59c293ca10271bab05da61f2874ead6c to your computer and use it in GitHub Desktop.
Used in medium controller article
create_table "passports", force: :cascade do |t|
t.integer "number"
t.integer "user_id", null: false
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
t.index ["user_id"], name: "index_passports_on_user_id"
end
create_table "users", force: :cascade do |t|
t.string "name"
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment