Commit 832f268702a8bc614063f27ddb7bd085b60cd04c

Authored by Rodrigo Souto
1 parent 633b52cb

Remove duplicate article parent_id index

db/migrate/20140708121356_index_articles_filtered_fields.rb
1 class IndexArticlesFilteredFields < ActiveRecord::Migration 1 class IndexArticlesFilteredFields < ActiveRecord::Migration
2 def self.up 2 def self.up
3 %w[articles article_versions].each do |table| 3 %w[articles article_versions].each do |table|
4 - add_index table, [:parent_id]  
5 add_index table, [:path] 4 add_index table, [:path]
6 add_index table, [:path, :profile_id] 5 add_index table, [:path, :profile_id]
7 end 6 end