diff --git a/db/migrate/20141006182907_create_statistics.rb b/db/migrate/20141006182907_create_statistics.rb index 113a615fd..4df439d71 100644 --- a/db/migrate/20141006182907_create_statistics.rb +++ b/db/migrate/20141006182907_create_statistics.rb @@ -13,13 +13,13 @@ class CreateStatistics < ActiveRecord::Migration end - add_index :statistics, :user_id, algorithm: :concurrently - add_index :statistics, :project_id, algorithm: :concurrently - add_index :statistics, :type, algorithm: :concurrently - add_index :statistics, [:user_id, :type, :activity_at], algorithm: :concurrently - add_index :statistics, [:project_id, :type, :activity_at], algorithm: :concurrently - add_index :statistics, [:type, :activity_at], algorithm: :concurrently - add_index :statistics, :activity_at, algorithm: :concurrently + add_index :statistics, :user_id + add_index :statistics, :project_id + add_index :statistics, :type + add_index :statistics, [:user_id, :type, :activity_at] + add_index :statistics, [:project_id, :type, :activity_at] + add_index :statistics, [:type, :activity_at] + add_index :statistics, :activity_at add_index :statistics, [:user_id, :project_id, :type, :activity_at], unique: true, name: 'index_statistics_on_all_keys'