summaryrefslogtreecommitdiff
path: root/db
diff options
context:
space:
mode:
authorShinya Maeda <shinya@gitlab.com>2017-07-31 21:59:04 +0900
committerShinya Maeda <shinya@gitlab.com>2017-09-03 23:49:10 +0900
commite9924687147b1222fa2df3765a1e3c37662028a2 (patch)
treeaee3d554f695a51f669dd845c93ae0c7d9b39ccd /db
parent81002745184df28fc9d969afc524986279c653bb (diff)
downloadgitlab-ce-e9924687147b1222fa2df3765a1e3c37662028a2.tar.gz
ini
Diffstat (limited to 'db')
-rw-r--r--db/migrate/20170731123938_add_protected_to_ci_runners.rb15
-rw-r--r--db/schema.rb1
2 files changed, 16 insertions, 0 deletions
diff --git a/db/migrate/20170731123938_add_protected_to_ci_runners.rb b/db/migrate/20170731123938_add_protected_to_ci_runners.rb
new file mode 100644
index 00000000000..3782e047eee
--- /dev/null
+++ b/db/migrate/20170731123938_add_protected_to_ci_runners.rb
@@ -0,0 +1,15 @@
+class AddProtectedToCiRunners < ActiveRecord::Migration
+ include Gitlab::Database::MigrationHelpers
+
+ DOWNTIME = false
+
+ disable_ddl_transaction!
+
+ def up
+ add_column_with_default(:ci_runners, :protected, :boolean, default: false)
+ end
+
+ def down
+ remove_column(:ci_runners, :protected)
+ end
+end
diff --git a/db/schema.rb b/db/schema.rb
index 434d1326419..be12fc07e81 100644
--- a/db/schema.rb
+++ b/db/schema.rb
@@ -371,6 +371,7 @@ ActiveRecord::Schema.define(version: 20170824162758) do
t.string "architecture"
t.boolean "run_untagged", default: true, null: false
t.boolean "locked", default: false, null: false
+ t.boolean "protected", default: false, null: false
end
add_index "ci_runners", ["contacted_at"], name: "index_ci_runners_on_contacted_at", using: :btree