Imrpove migrations
This commit is contained in:
1 parent
49b53451b7
commit
137e53618b
3 files changed
+14
-5
No files matched your search
@@ -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
|
||||
|
||||
|
||||
Reference in new issue
Block a user