From c63c4620d1c659712cec93e354e84f5017bd6254 Mon Sep 17 00:00:00 2001 From: erdgeist Date: Sun, 2 Aug 2026 23:55:38 +0200 Subject: Log user logins and reconstruct last activity from logs --- db/migrate/20260802213023_add_last_login_to_users.rb | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 db/migrate/20260802213023_add_last_login_to_users.rb (limited to 'db') 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 @@ +class AddLastLoginToUsers < ActiveRecord::Migration[8.1] + def change + add_column :users, :last_login_at, :datetime + end +end -- cgit v1.3