diff options
author | Alejandro RodrÃguez <alejorro70@gmail.com> | 2016-08-02 19:35:48 -0400 |
---|---|---|
committer | Alejandro RodrÃguez <alejorro70@gmail.com> | 2016-08-03 16:43:45 -0400 |
commit | efef0be2352a7a2ca769c1db0560a76fbe36b9a3 (patch) | |
tree | 69e4189471b8e3fc7c9bc810f5a3e75c7b008e11 /db/migrate | |
parent | 6a9283600cd4a11b97fe26772e68095d8dc854bd (diff) | |
download | gitlab-ce-efef0be2352a7a2ca769c1db0560a76fbe36b9a3.tar.gz |
Remove unnecessary index_projects_on_builds_enabled index from the projects table20491-remove-unnecessary-index_projects_on_builds_enabled-index-from-the-projects-table
Diffstat (limited to 'db/migrate')
-rw-r--r-- | db/migrate/20160802010328_remove_builds_enable_index_on_projects.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/db/migrate/20160802010328_remove_builds_enable_index_on_projects.rb b/db/migrate/20160802010328_remove_builds_enable_index_on_projects.rb new file mode 100644 index 00000000000..5fd51cb65f1 --- /dev/null +++ b/db/migrate/20160802010328_remove_builds_enable_index_on_projects.rb @@ -0,0 +1,9 @@ +class RemoveBuildsEnableIndexOnProjects < ActiveRecord::Migration + include Gitlab::Database::MigrationHelpers + + DOWNTIME = false + + def change + remove_index :projects, column: :builds_enabled if index_exists?(:projects, :builds_enabled) + end +end |