summaryrefslogtreecommitdiff
path: root/db
diff options
context:
space:
mode:
authorGabriel Mazetto <brodock@gmail.com>2017-08-07 11:07:42 +0200
committerGabriel Mazetto <brodock@gmail.com>2017-08-22 06:33:20 +0200
commite7a060321fed61085c7d70d23e9ea33825d1467f (patch)
treee59b5fd808c21cd819ae62930839c29a99dc6ef9 /db
parent72250a4ed8978b32c2e12dd05fc6feb8132e4083 (diff)
downloadgitlab-ce-e7a060321fed61085c7d70d23e9ea33825d1467f.tar.gz
Moving away from the "extend" based factory to a more traditional one.
Using `extend` dynamically can lead to bad performance as it invalidates the method's cache.
Diffstat (limited to 'db')
-rw-r--r--db/migrate/20170802013652_add_storage_fields_to_project.rb1
1 files changed, 0 insertions, 1 deletions
diff --git a/db/migrate/20170802013652_add_storage_fields_to_project.rb b/db/migrate/20170802013652_add_storage_fields_to_project.rb
index a0815da0fcd..e99ae53ef11 100644
--- a/db/migrate/20170802013652_add_storage_fields_to_project.rb
+++ b/db/migrate/20170802013652_add_storage_fields_to_project.rb
@@ -8,7 +8,6 @@ class AddStorageFieldsToProject < ActiveRecord::Migration
disable_ddl_transaction!
def up
- # rubocop:disable Migration/AddColumnWithDefaultToLargeTable
add_column :projects, :storage_version, :integer, limit: 2
add_concurrent_index :projects, :storage_version
end