theseus/db/migrate/20251218193953_create_hcb_payment_accounts.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
355 B
Ruby

class CreateHCBPaymentAccounts < ActiveRecord::Migration[8.0]
def change
create_table :hcb_payment_accounts do |t|
t.references :user, null: false, foreign_key: true
t.references :hcb_oauth_connection, null: false, foreign_key: true
t.string :organization_id
t.string :organization_name
t.timestamps
end
end
end