diff options
author | Rémy Coutable <remy@rymai.me> | 2017-03-07 19:35:32 +0100 |
---|---|---|
committer | Rémy Coutable <remy@rymai.me> | 2017-04-14 15:20:55 +0200 |
commit | d4da926f48503125307fe3d4a4f3952df92fc1ce (patch) | |
tree | 1a4ed961162f686f282aa173deaf4af5f7406ea6 /db | |
parent | cfe19b795e076b73df75ee57839640667283651c (diff) | |
download | gitlab-ce-d4da926f48503125307fe3d4a4f3952df92fc1ce.tar.gz |
Add new ScheduleUpdateUserActivityWorker and UpdateUserActivityWorker
Signed-off-by: Rémy Coutable <remy@rymai.me>
Diffstat (limited to 'db')
-rw-r--r-- | db/migrate/20170307125949_add_last_activity_on_to_users.rb | 9 | ||||
-rw-r--r-- | db/schema.rb | 1 |
2 files changed, 10 insertions, 0 deletions
diff --git a/db/migrate/20170307125949_add_last_activity_on_to_users.rb b/db/migrate/20170307125949_add_last_activity_on_to_users.rb new file mode 100644 index 00000000000..0100836b473 --- /dev/null +++ b/db/migrate/20170307125949_add_last_activity_on_to_users.rb @@ -0,0 +1,9 @@ +class AddLastActivityOnToUsers < ActiveRecord::Migration + include Gitlab::Database::MigrationHelpers + + DOWNTIME = false + + def change + add_column :users, :last_activity_on, :date + end +end diff --git a/db/schema.rb b/db/schema.rb index 1c592dd5d6d..9ce9df68de8 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -1303,6 +1303,7 @@ ActiveRecord::Schema.define(version: 20170408033905) do t.string "organization" t.boolean "authorized_projects_populated" t.boolean "ghost" + t.date "last_activity_on" t.boolean "notified_of_own_activity" t.boolean "require_two_factor_authentication_from_group", default: false, null: false t.integer "two_factor_grace_period", default: 48, null: false |