diff options
| author | Raghuram Subramani <raghus2247@gmail.com> | 2025-10-29 09:09:30 -0400 |
|---|---|---|
| committer | Raghuram Subramani <raghus2247@gmail.com> | 2025-10-29 09:09:30 -0400 |
| commit | 91e36a2e455d8a69c28794bcc0d994007d5fddbb (patch) | |
| tree | 52a02b7c94be75f24f7661aee5b1a4f2e1564d5a /db/schema.rb | |
| parent | 252078b121cd870ed63f632ad75e3e6aeed1caad (diff) | |
models: visit: create with reference to client
Diffstat (limited to 'db/schema.rb')
| -rw-r--r-- | db/schema.rb | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/db/schema.rb b/db/schema.rb index fe7b52f..52a6a4c 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -10,7 +10,7 @@ # # It's strongly recommended that you check this file into your version control system. -ActiveRecord::Schema[8.1].define(version: 2025_10_29_010650) do +ActiveRecord::Schema[8.1].define(version: 2025_10_29_130829) do # These are extensions that must be enabled in order to support this database enable_extension "pg_catalog.plpgsql" @@ -39,5 +39,13 @@ ActiveRecord::Schema[8.1].define(version: 2025_10_29_010650) do t.index ["email_address"], name: "index_users_on_email_address", unique: true end + create_table "visits", force: :cascade do |t| + t.bigint "client_id", null: false + t.datetime "created_at", null: false + t.datetime "updated_at", null: false + t.index ["client_id"], name: "index_visits_on_client_id" + end + add_foreign_key "sessions", "users" + add_foreign_key "visits", "clients" end |
