Files
sure/db/migrate/20240401213443_add_last_sync_date_to_accounts.rb
Mattia 315c4bf1ec Account Sync should happen at login, 1x per day, OR on-demand (#594)
* Add last_sync_date to accounts table

* Always sync Account after Valuation or Transaction creation, update, or deletion.

Skip sync if user clicks "sync" button without changing anything

* Sync user accounts daily based on last_login_at
2024-04-04 17:00:12 -04:00

6 lines
135 B
Ruby

class AddLastSyncDateToAccounts < ActiveRecord::Migration[7.2]
def change
add_column :accounts, :last_sync_date, :date
end
end