Commit 832f268702a8bc614063f27ddb7bd085b60cd04c
1 parent
633b52cb
Exists in
master
and in
29 other branches
Remove duplicate article parent_id index
Showing
1 changed file
with
0 additions
and
1 deletions
Show diff stats
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 |