summaryrefslogtreecommitdiff
path: root/db
diff options
context:
space:
mode:
authorEric Maziade <eric.maziade@novisoft.com>2015-06-05 11:50:37 -0400
committerEric Maziade <eric.maziade@novisoft.com>2015-06-05 11:50:37 -0400
commit84a414fe534ebb60c8e7396c245486be521e2a11 (patch)
tree35880b0bf1bdd1ba5818bbea464e86c7391f2407 /db
parent971e57cffa6a89ebcd4da83efc4967f834f8f58b (diff)
downloadgitlab-ce-84a414fe534ebb60c8e7396c245486be521e2a11.tar.gz
Add session expiration delay configuration through UI application
settings
Diffstat (limited to 'db')
-rw-r--r--db/migrate/20150604202921_add_session_expire_seconds_for_application_settings.rb5
-rw-r--r--db/schema.rb3
2 files changed, 7 insertions, 1 deletions
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|