Add support for multiple keypairs for remote accounts (#38279)

This commit is contained in:
Claire
2026-03-25 15:52:12 +01:00
committed by GitHub
parent 1820a03622
commit 15dbf8040e
14 changed files with 387 additions and 59 deletions

View File

@@ -0,0 +1,20 @@
# frozen_string_literal: true
class CreateKeypairs < ActiveRecord::Migration[8.0]
def change
create_table :keypairs do |t|
t.references :account, null: false, foreign_key: { on_delete: :cascade }
t.string :uri, null: false
t.integer :type, null: false
t.string :public_key, null: false
t.string :private_key
t.datetime :expires_at
t.boolean :revoked, default: false, null: false
t.timestamps
end
add_index :keypairs, :uri, unique: true
end
end