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:
authorGrzegorz Bizon <grzesiek.bizon@gmail.com>2017-07-20 14:17:48 +0300
committerGrzegorz Bizon <grzesiek.bizon@gmail.com>2017-07-20 14:30:36 +0300
commite389507650769304bd61f7a82431cc6c07feb364 (patch)
treefb63f427197f8f0a6234569d2b82d71ecce9ee8f /db/migrate/20170720111708_add_lock_version_to_ci_stages.rb
parent470661e1a70bd3c8415387e9068823536d1fb1bc (diff)
Add optimistic locking column to ci_stages table
Diffstat (limited to 'db/migrate/20170720111708_add_lock_version_to_ci_stages.rb')
-rw-r--r--db/migrate/20170720111708_add_lock_version_to_ci_stages.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/db/migrate/20170720111708_add_lock_version_to_ci_stages.rb b/db/migrate/20170720111708_add_lock_version_to_ci_stages.rb
new file mode 100644
index 00000000000..e1c4f033286
--- /dev/null
+++ b/db/migrate/20170720111708_add_lock_version_to_ci_stages.rb
@@ -0,0 +1,9 @@
+class AddLockVersionToCiStages < ActiveRecord::Migration
+ include Gitlab::Database::MigrationHelpers
+
+ DOWNTIME = false
+
+ def change
+ add_column :ci_stages, :lock_version, :integer
+ end
+end