summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGrzegorz Bizon <grzesiek.bizon@gmail.com>2018-04-24 11:26:48 +0200
committerGrzegorz Bizon <grzesiek.bizon@gmail.com>2018-04-24 11:26:48 +0200
commitd9f05306b617f7079b468bf98e6a7ff466ccc1d2 (patch)
tree8c6342e0e877fa4b26c7a8f3324c86a74ae57041
parent5771972e8ca2a7ad06445ee539054b23cf228de8 (diff)
downloadgitlab-ce-d9f05306b617f7079b468bf98e6a7ff466ccc1d2.tar.gz
Use smallint for stage index column
-rw-r--r--db/migrate/20180417101940_add_index_to_ci_stage.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/db/migrate/20180417101940_add_index_to_ci_stage.rb b/db/migrate/20180417101940_add_index_to_ci_stage.rb
index f14bbe458ae..ee574ddf2ce 100644
--- a/db/migrate/20180417101940_add_index_to_ci_stage.rb
+++ b/db/migrate/20180417101940_add_index_to_ci_stage.rb
@@ -4,6 +4,6 @@ class AddIndexToCiStage < ActiveRecord::Migration
DOWNTIME = false
def change
- add_column :ci_stages, :index, :integer
+ add_column :ci_stages, :index, :integer, limit: 2
end
end