From fce6bb414230d40217b7e86758e864b87af34196 Mon Sep 17 00:00:00 2001 From: Vokhmin Alexey V Date: Tue, 7 Oct 2014 19:53:26 +0400 Subject: [PATCH] #435: clanup migration --- db/migrate/20141006182907_create_statistics.rb | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) 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'