feat: encrypt auth config

This commit is contained in:
Shivam Mishra
2026-04-06 19:52:16 +05:30
parent 118270d2e8
commit 3514ed61d6
3 changed files with 19 additions and 3 deletions
@@ -0,0 +1,13 @@
class ChangeAuthConfigToTextInCaptainCustomTools < ActiveRecord::Migration[7.1]
def up
change_column :captain_custom_tools, :auth_config, :text, default: nil
end
def down
execute <<~SQL.squish
ALTER TABLE captain_custom_tools
ALTER COLUMN auth_config TYPE jsonb USING auth_config::jsonb,
ALTER COLUMN auth_config SET DEFAULT '{}'::jsonb
SQL
end
end