Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorValery Sizov <valery@gitlab.com>2015-09-15 16:19:32 +0300
committerValery Sizov <vsv2711@gmail.com>2015-09-17 09:51:24 +0300
commitce4defaf2f9195df4680823d8c9f0f49bbced21b (patch)
treef8528f681686a863e7e83b4cec8dbbe8baf94324 /db/migrate
parent480e713c8f1cb240d00b1b2659ef206a164e3733 (diff)
enable SSL by default
Diffstat (limited to 'db/migrate')
-rw-r--r--db/migrate/20150915001905_enable_ssl_verification_by_default.rb5
-rw-r--r--db/migrate/20150916000405_enable_ssl_verification_for_web_hooks.rb8
2 files changed, 13 insertions, 0 deletions
diff --git a/db/migrate/20150915001905_enable_ssl_verification_by_default.rb b/db/migrate/20150915001905_enable_ssl_verification_by_default.rb
new file mode 100644
index 00000000000..6e924262a13
--- /dev/null
+++ b/db/migrate/20150915001905_enable_ssl_verification_by_default.rb
@@ -0,0 +1,5 @@
+class EnableSslVerificationByDefault < ActiveRecord::Migration
+ def change
+ change_column :web_hooks, :enable_ssl_verification, :boolean, default: true
+ end
+end
diff --git a/db/migrate/20150916000405_enable_ssl_verification_for_web_hooks.rb b/db/migrate/20150916000405_enable_ssl_verification_for_web_hooks.rb
new file mode 100644
index 00000000000..90ce6c2db3d
--- /dev/null
+++ b/db/migrate/20150916000405_enable_ssl_verification_for_web_hooks.rb
@@ -0,0 +1,8 @@
+class EnableSslVerificationForWebHooks < ActiveRecord::Migration
+ def up
+ execute("UPDATE web_hooks SET enable_ssl_verification = true")
+ end
+
+ def down
+ end
+end