From 84a414fe534ebb60c8e7396c245486be521e2a11 Mon Sep 17 00:00:00 2001 From: Eric Maziade Date: Fri, 5 Jun 2015 11:50:37 -0400 Subject: Add session expiration delay configuration through UI application settings --- ...0604202921_add_session_expire_seconds_for_application_settings.rb | 5 +++++ db/schema.rb | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 db/migrate/20150604202921_add_session_expire_seconds_for_application_settings.rb (limited to 'db') diff --git a/db/migrate/20150604202921_add_session_expire_seconds_for_application_settings.rb b/db/migrate/20150604202921_add_session_expire_seconds_for_application_settings.rb new file mode 100644 index 00000000000..8096efc6865 --- /dev/null +++ b/db/migrate/20150604202921_add_session_expire_seconds_for_application_settings.rb @@ -0,0 +1,5 @@ +class AddSessionExpireSecondsForApplicationSettings < ActiveRecord::Migration + def change + add_column :application_settings, :session_expire_seconds, :integer, default: 604800, null: false + end +end \ No newline at end of file diff --git a/db/schema.rb b/db/schema.rb index aea0742cf3b..d2ad55d7a99 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -11,7 +11,7 @@ # # It's strongly recommended that you check this file into your version control system. -ActiveRecord::Schema.define(version: 20150529150354) do +ActiveRecord::Schema.define(version: 20150604202921) do # These are extensions that must be enabled in order to support this database enable_extension "plpgsql" @@ -35,6 +35,7 @@ ActiveRecord::Schema.define(version: 20150529150354) do t.text "restricted_signup_domains" t.boolean "user_oauth_applications", default: true t.string "after_sign_out_path" + t.integer "session_expire_seconds", default: 604800, null: false end create_table "broadcast_messages", force: true do |t| -- cgit v1.2.3