#435: clanup migration

This commit is contained in:
Vokhmin Alexey V 2014-10-07 19:53:26 +04:00
parent f0f052c822
commit fce6bb4142
1 changed files with 7 additions and 7 deletions

View File

@ -13,13 +13,13 @@ class CreateStatistics < ActiveRecord::Migration
end end
add_index :statistics, :user_id, algorithm: :concurrently add_index :statistics, :user_id
add_index :statistics, :project_id, algorithm: :concurrently add_index :statistics, :project_id
add_index :statistics, :type, algorithm: :concurrently add_index :statistics, :type
add_index :statistics, [:user_id, :type, :activity_at], algorithm: :concurrently add_index :statistics, [:user_id, :type, :activity_at]
add_index :statistics, [:project_id, :type, :activity_at], algorithm: :concurrently add_index :statistics, [:project_id, :type, :activity_at]
add_index :statistics, [:type, :activity_at], algorithm: :concurrently add_index :statistics, [:type, :activity_at]
add_index :statistics, :activity_at, algorithm: :concurrently add_index :statistics, :activity_at
add_index :statistics, [:user_id, :project_id, :type, :activity_at], unique: true, add_index :statistics, [:user_id, :project_id, :type, :activity_at], unique: true,
name: 'index_statistics_on_all_keys' name: 'index_statistics_on_all_keys'