2
3
4
5
6
7
8
9
10
11
12
13
14
|
# File 'lib/generators/ruby_cms/templates/db/migrate/20260605151935_create_passkey_credentials.rb', line 2
def change
create_table :passkey_credentials, if_not_exists: true do |t|
t.references :user, null: false, foreign_key: true
t.string :external_id, null: false
t.string :public_key, null: false
t.bigint :sign_count, null: false, default: 0
t.string :nickname
t.string :transports t.datetime :last_used_at
t.timestamps
end
add_index :passkey_credentials, :external_id, unique: true, if_not_exists: true
end
|