summaryrefslogtreecommitdiff
path: root/db
diff options
context:
space:
mode:
authorDylan Griffith <dyl.griffith@gmail.com>2018-02-22 17:03:00 +1100
committerDylan Griffith <dyl.griffith@gmail.com>2018-02-28 11:54:37 +1100
commitb5a5fdf0e3b97622789db444bf0bf697e78dbb47 (patch)
treecd91aeed35c2d88f916ba63f82f5f49aed8c8c3d /db
parent0be4a77d0012613f960c4177f53101c46de2899c (diff)
downloadgitlab-ce-b5a5fdf0e3b97622789db444bf0bf697e78dbb47.tar.gz
Persist runner IP address on contact (#43489)
Diffstat (limited to 'db')
-rw-r--r--db/migrate/20180222043024_add_ip_address_to_runner.rb9
-rw-r--r--db/schema.rb3
2 files changed, 11 insertions, 1 deletions
diff --git a/db/migrate/20180222043024_add_ip_address_to_runner.rb b/db/migrate/20180222043024_add_ip_address_to_runner.rb
new file mode 100644
index 00000000000..bf00560b5a8
--- /dev/null
+++ b/db/migrate/20180222043024_add_ip_address_to_runner.rb
@@ -0,0 +1,9 @@
+class AddIpAddressToRunner < ActiveRecord::Migration
+ include Gitlab::Database::MigrationHelpers
+
+ DOWNTIME = false
+
+ def change
+ add_column :ci_runners, :ip_address, :string
+ end
+end
diff --git a/db/schema.rb b/db/schema.rb
index 5bb461169f1..3fb80065ff5 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: 20180216121030) do
+ActiveRecord::Schema.define(version: 20180222043024) do
# These are extensions that must be enabled in order to support this database
enable_extension "plpgsql"
@@ -437,6 +437,7 @@ ActiveRecord::Schema.define(version: 20180216121030) do
t.boolean "run_untagged", default: true, null: false
t.boolean "locked", default: false, null: false
t.integer "access_level", default: 0, null: false
+ t.string "ip_address"
end
add_index "ci_runners", ["contacted_at"], name: "index_ci_runners_on_contacted_at", using: :btree