diff options
author | Mayra Cabrera <mcabrera@gitlab.com> | 2019-08-23 21:36:12 +0000 |
---|---|---|
committer | Stan Hu <stanhu@gmail.com> | 2019-08-23 21:36:12 +0000 |
commit | 4706352416005962ccb34bad1c3acc5d7479523c (patch) | |
tree | 334b873d90bf2aa98349f3812e9b1af06f89f484 /db/migrate/20190429082448_create_pages_domain_acme_orders.rb | |
parent | b8dec7ecb43d3825f994136ca68e88aada832218 (diff) | |
download | gitlab-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/20190429082448_create_pages_domain_acme_orders.rb')
-rw-r--r-- | db/migrate/20190429082448_create_pages_domain_acme_orders.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/db/migrate/20190429082448_create_pages_domain_acme_orders.rb b/db/migrate/20190429082448_create_pages_domain_acme_orders.rb index af811e83518..ca1796d054c 100644 --- a/db/migrate/20190429082448_create_pages_domain_acme_orders.rb +++ b/db/migrate/20190429082448_create_pages_domain_acme_orders.rb @@ -10,6 +10,7 @@ class CreatePagesDomainAcmeOrders < ActiveRecord::Migration[5.1] DOWNTIME = false def change + # rubocop:disable Migration/AddLimitToStringColumns create_table :pages_domain_acme_orders do |t| t.references :pages_domain, null: false, index: true, foreign_key: { on_delete: :cascade }, type: :integer @@ -24,5 +25,6 @@ class CreatePagesDomainAcmeOrders < ActiveRecord::Migration[5.1] t.text :encrypted_private_key, null: false t.text :encrypted_private_key_iv, null: false end + # rubocop:enable Migration/AddLimitToStringColumns end end |