diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2017-06-25 16:54:30 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-06-25 16:54:30 +0200 |
commit | f7301bd5b94d3033b5dbb9ff65dd1ed8ac825ce5 (patch) | |
tree | ddc52c8b89c84ee825d451cc50a6946d7d77b2bb /db/migrate | |
parent | 099a3b4eaccc37338eda9f45fc26991ea7115200 (diff) |
Add overview of active sessions (#3929)
* Add overview of active sessions * Better display of browser/platform name * Improve how browser information is stored and displayed for sessions overview * Fix test
Diffstat (limited to 'db/migrate')
-rw-r--r-- | db/migrate/20170624134742_add_description_to_session_activations.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/db/migrate/20170624134742_add_description_to_session_activations.rb b/db/migrate/20170624134742_add_description_to_session_activations.rb new file mode 100644 index 000000000..9dbb15564 --- /dev/null +++ b/db/migrate/20170624134742_add_description_to_session_activations.rb @@ -0,0 +1,7 @@ +class AddDescriptionToSessionActivations < ActiveRecord::Migration[5.1] + def change + add_column :session_activations, :user_agent, :string, null: false, default: '' + add_column :session_activations, :ip, :inet + add_foreign_key :session_activations, :users, on_delete: :cascade + end +end |