mirror of
https://github.com/mastodon/mastodon.git
synced 2025-09-06 01:41:08 +00:00
Add on_delete: :cascade to account_secrets foreign key
This commit is contained in:
parent
2361eac493
commit
fdb7f8ae36
|
@ -3,7 +3,7 @@
|
|||
class CreateAccountSecrets < ActiveRecord::Migration[8.0]
|
||||
def change
|
||||
create_table :account_secrets do |t|
|
||||
t.references :account, null: false, foreign_key: true, index: { unique: true }
|
||||
t.references :account, null: false, foreign_key: { on_delete: :cascade }, index: { unique: true }
|
||||
t.text :private_key
|
||||
|
||||
t.timestamps
|
||||
|
|
|
@ -1364,7 +1364,7 @@ ActiveRecord::Schema[8.0].define(version: 2025_08_29_133404) do
|
|||
add_foreign_key "account_pins", "accounts", on_delete: :cascade
|
||||
add_foreign_key "account_relationship_severance_events", "accounts", on_delete: :cascade
|
||||
add_foreign_key "account_relationship_severance_events", "relationship_severance_events", on_delete: :cascade
|
||||
add_foreign_key "account_secrets", "accounts"
|
||||
add_foreign_key "account_secrets", "accounts", on_delete: :cascade
|
||||
add_foreign_key "account_stats", "accounts", on_delete: :cascade
|
||||
add_foreign_key "account_statuses_cleanup_policies", "accounts", on_delete: :cascade
|
||||
add_foreign_key "account_warnings", "accounts", column: "target_account_id", on_delete: :cascade
|
||||
|
|
Loading…
Reference in New Issue
Block a user