diff options
| author | erdgeist <erdgeist@erdgeist.org> | 2026-08-02 23:55:38 +0200 |
|---|---|---|
| committer | erdgeist <erdgeist@erdgeist.org> | 2026-08-02 23:55:38 +0200 |
| commit | c63c4620d1c659712cec93e354e84f5017bd6254 (patch) | |
| tree | cb4b71768aab6d3b41c97f221ddbf06a148d8481 /db/migrate/20260802213023_add_last_login_to_users.rb | |
| parent | 665bad61a26fd98b581c1f60981da94c05a28ca0 (diff) | |
Log user logins and reconstruct last activity from logs
Diffstat (limited to 'db/migrate/20260802213023_add_last_login_to_users.rb')
| -rw-r--r-- | db/migrate/20260802213023_add_last_login_to_users.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/db/migrate/20260802213023_add_last_login_to_users.rb b/db/migrate/20260802213023_add_last_login_to_users.rb new file mode 100644 index 00000000..6fec24a1 --- /dev/null +++ b/db/migrate/20260802213023_add_last_login_to_users.rb | |||
| @@ -0,0 +1,5 @@ | |||
| 1 | class AddLastLoginToUsers < ActiveRecord::Migration[8.1] | ||
| 2 | def change | ||
| 3 | add_column :users, :last_login_at, :datetime | ||
| 4 | end | ||
| 5 | end | ||
