Files
netig.net/db/migrations/001_create_rodauth_tables.rb
T
2026-11-02 11:11:42 +01:00

20 lines
413 B
Ruby

Sequel.migration do
up do
create_table(:accounts) do
primary_key :id, type: :Bignum
String :email, null: false
index :email, unique: true
end
create_table(:account_password_hashes) do
foreign_key :id, :accounts, primary_key: true, type: :Bignum
String :password_hash, null: false
end
end
down do
drop_table(:account_password_hashes, :accounts)
end
end