Make Web::PushSubscription#user
and Web::PushSubscription#access_token
relationships non-optional (#34498)
Co-authored-by: Emelia Smith <ThisIsMissEm@users.noreply.github.com>
This commit is contained in:
parent
dee744c793
commit
7bc301e184
9 changed files with 66 additions and 37 deletions
|
@ -10,7 +10,7 @@
|
|||
#
|
||||
# It's strongly recommended that you check this file into your version control system.
|
||||
|
||||
ActiveRecord::Schema[8.0].define(version: 2025_04_11_095859) do
|
||||
ActiveRecord::Schema[8.0].define(version: 2025_04_22_085303) do
|
||||
# These are extensions that must be enabled in order to support this database
|
||||
enable_extension "pg_catalog.plpgsql"
|
||||
|
||||
|
@ -1237,8 +1237,8 @@ ActiveRecord::Schema[8.0].define(version: 2025_04_11_095859) do
|
|||
t.json "data"
|
||||
t.datetime "created_at", precision: nil, null: false
|
||||
t.datetime "updated_at", precision: nil, null: false
|
||||
t.bigint "access_token_id"
|
||||
t.bigint "user_id"
|
||||
t.bigint "access_token_id", null: false
|
||||
t.bigint "user_id", null: false
|
||||
t.boolean "standard", default: false, null: false
|
||||
t.index ["access_token_id"], name: "index_web_push_subscriptions_on_access_token_id", where: "(access_token_id IS NOT NULL)"
|
||||
t.index ["user_id"], name: "index_web_push_subscriptions_on_user_id"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue