Imrpove migrations

This commit is contained in:
julien committed 2026-11-03 10:47:07 +01:00
1 parent 49b53451b7
commit 137e53618b
3 files changed
+14 -5

No files matched your search

+4 -2
View File
@@ -35,7 +35,8 @@ Sequel.migration do
create_table(:account_password_hashes) do
foreign_key :id, :accounts,
primary_key: true,
type: :Bignum
type: :Bignum,
on_delete: :cascade
String :password_hash, null: false
end
@@ -43,7 +44,8 @@ Sequel.migration do
create_table(:account_verification_keys) do
foreign_key :id, :accounts,
primary_key: true,
type: :Bignum
type: :Bignum,
on_delete: :cascade
String :key, null: false