mirror of
https://github.com/maybe-finance/maybe.git
synced 2025-08-02 20:15:22 +02:00
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
This commit is contained in:
parent
4f0b2de4ef
commit
315c4bf1ec
8 changed files with 48 additions and 8 deletions
|
@ -0,0 +1,5 @@
|
|||
class AddLastSyncDateToAccounts < ActiveRecord::Migration[7.2]
|
||||
def change
|
||||
add_column :accounts, :last_sync_date, :date
|
||||
end
|
||||
end
|
5
db/migrate/20240403192649_add_last_login_at_to_users.rb
Normal file
5
db/migrate/20240403192649_add_last_login_at_to_users.rb
Normal file
|
@ -0,0 +1,5 @@
|
|||
class AddLastLoginAtToUsers < ActiveRecord::Migration[7.2]
|
||||
def change
|
||||
add_column :users, :last_login_at, :datetime
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue