mirror of
https://github.com/we-promise/sure.git
synced 2026-04-18 11:34:13 +00:00
- Create simplefin_items table for SimpleFin connections - Create simplefin_accounts table for account metadata - Add simplefin_account_id to accounts table for linking - Add external_id to transactions for deduplication - Enable encrypted storage of SimpleFin access URLs
21 lines
560 B
Ruby
21 lines
560 B
Ruby
class CreateSimplefinItems < ActiveRecord::Migration[7.2]
|
|
def change
|
|
create_table :simplefin_items, id: :uuid do |t|
|
|
t.references :family, null: false, foreign_key: true, type: :uuid
|
|
t.text :access_url
|
|
t.string :name
|
|
t.string :institution_id
|
|
t.string :institution_name
|
|
t.string :institution_url
|
|
t.string :status, default: "good"
|
|
t.boolean :scheduled_for_deletion, default: false
|
|
|
|
t.index :status
|
|
t.jsonb :raw_payload
|
|
t.jsonb :raw_institution_payload
|
|
|
|
t.timestamps
|
|
end
|
|
end
|
|
end
|