summaryrefslogtreecommitdiff
path: root/db/migrate/20180212030105_add_external_ip_to_clusters_applications_ingress.rb
diff options
context:
space:
mode:
authorMayra Cabrera <mcabrera@gitlab.com>2019-08-23 21:36:12 +0000
committerStan Hu <stanhu@gmail.com>2019-08-23 21:36:12 +0000
commit4706352416005962ccb34bad1c3acc5d7479523c (patch)
tree334b873d90bf2aa98349f3812e9b1af06f89f484 /db/migrate/20180212030105_add_external_ip_to_clusters_applications_ingress.rb
parentb8dec7ecb43d3825f994136ca68e88aada832218 (diff)
downloadgitlab-ce-4706352416005962ccb34bad1c3acc5d7479523c.tar.gz
Adds cop to enforce string limits on migrations
This cop will analyze migrations that add columns with string, and report an offense if the string has no limit enforced Related to https://gitlab.com/gitlab-org/gitlab-ce/issues/64505
Diffstat (limited to 'db/migrate/20180212030105_add_external_ip_to_clusters_applications_ingress.rb')
-rw-r--r--db/migrate/20180212030105_add_external_ip_to_clusters_applications_ingress.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/db/migrate/20180212030105_add_external_ip_to_clusters_applications_ingress.rb b/db/migrate/20180212030105_add_external_ip_to_clusters_applications_ingress.rb
index e2a9a68b1ad..78aa2014601 100644
--- a/db/migrate/20180212030105_add_external_ip_to_clusters_applications_ingress.rb
+++ b/db/migrate/20180212030105_add_external_ip_to_clusters_applications_ingress.rb
@@ -4,6 +4,6 @@ class AddExternalIpToClustersApplicationsIngress < ActiveRecord::Migration[4.2]
DOWNTIME = false
def change
- add_column :clusters_applications_ingress, :external_ip, :string
+ add_column :clusters_applications_ingress, :external_ip, :string # rubocop:disable Migration/AddLimitToStringColumns
end
end