theseus/db/migrate/20251218193936_create_hcb_oauth_connections.rb
24c02 417c1f0e8f Add migrations for HCB payment integration
- Add can_use_indicia boolean to users table
- Create hcb_oauth_connections table for storing OAuth tokens
- Create hcb_payment_accounts table for user/org pairs
2025-12-18 14:40:06 -05:00

12 lines
324 B
Ruby

class CreateHCBOauthConnections < ActiveRecord::Migration[8.0]
def change
create_table :hcb_oauth_connections do |t|
t.references :user, null: false, foreign_key: true
t.text :access_token_ciphertext
t.text :refresh_token_ciphertext
t.datetime :expires_at
t.timestamps
end
end
end