Commit 5ac58e57e062bb6654aaabe23f294595832c1fea

Authored by Rodrigo Souto
1 parent 4c48c905

Adding new indexes do schema

Showing 1 changed file with 15 additions and 1 deletions   Show diff stats
@@ -9,7 +9,7 @@ @@ -9,7 +9,7 @@
9 # 9 #
10 # It's strongly recommended to check this file into your version control system. 10 # It's strongly recommended to check this file into your version control system.
11 11
12 -ActiveRecord::Schema.define(:version => 20121008185303) do 12 +ActiveRecord::Schema.define(:version => 20130111232201) do
13 13
14 create_table "abuse_reports", :force => true do |t| 14 create_table "abuse_reports", :force => true do |t|
15 t.integer "reporter_id" 15 t.integer "reporter_id"
@@ -88,6 +88,8 @@ ActiveRecord::Schema.define(:version => 20121008185303) do @@ -88,6 +88,8 @@ ActiveRecord::Schema.define(:version => 20121008185303) do
88 t.integer "license_id" 88 t.integer "license_id"
89 end 89 end
90 90
  91 + add_index "article_versions", ["article_id"], :name => "index_article_versions_on_article_id"
  92 +
91 create_table "articles", :force => true do |t| 93 create_table "articles", :force => true do |t|
92 t.string "name" 94 t.string "name"
93 t.string "slug" 95 t.string "slug"
@@ -129,6 +131,10 @@ ActiveRecord::Schema.define(:version => 20121008185303) do @@ -129,6 +131,10 @@ ActiveRecord::Schema.define(:version => 20121008185303) do
129 t.integer "license_id" 131 t.integer "license_id"
130 end 132 end
131 133
  134 + add_index "articles", ["name"], :name => "index_articles_on_name"
  135 + add_index "articles", ["parent_id"], :name => "index_articles_on_parent_id"
  136 + add_index "articles", ["profile_id"], :name => "index_articles_on_profile_id"
  137 + add_index "articles", ["slug"], :name => "index_articles_on_slug"
132 add_index "articles", ["translation_of_id"], :name => "index_articles_on_translation_of_id" 138 add_index "articles", ["translation_of_id"], :name => "index_articles_on_translation_of_id"
133 139
134 create_table "articles_categories", :id => false, :force => true do |t| 140 create_table "articles_categories", :id => false, :force => true do |t|
@@ -217,6 +223,8 @@ ActiveRecord::Schema.define(:version => 20121008185303) do @@ -217,6 +223,8 @@ ActiveRecord::Schema.define(:version => 20121008185303) do
217 t.string "referrer" 223 t.string "referrer"
218 end 224 end
219 225
  226 + add_index "comments", ["source_id", "spam"], :name => "index_comments_on_source_id_and_spam"
  227 +
220 create_table "contact_lists", :force => true do |t| 228 create_table "contact_lists", :force => true do |t|
221 t.text "list" 229 t.text "list"
222 t.string "error_fetching" 230 t.string "error_fetching"
@@ -280,6 +288,7 @@ ActiveRecord::Schema.define(:version => 20121008185303) do @@ -280,6 +288,7 @@ ActiveRecord::Schema.define(:version => 20121008185303) do
280 t.integer "update_errors", :default => 0 288 t.integer "update_errors", :default => 0
281 end 289 end
282 290
  291 + add_index "external_feeds", ["blog_id"], :name => "index_external_feeds_on_blog_id"
283 add_index "external_feeds", ["enabled"], :name => "index_external_feeds_on_enabled" 292 add_index "external_feeds", ["enabled"], :name => "index_external_feeds_on_enabled"
284 add_index "external_feeds", ["fetched_at"], :name => "index_external_feeds_on_fetched_at" 293 add_index "external_feeds", ["fetched_at"], :name => "index_external_feeds_on_fetched_at"
285 294
@@ -295,6 +304,10 @@ ActiveRecord::Schema.define(:version => 20121008185303) do @@ -295,6 +304,10 @@ ActiveRecord::Schema.define(:version => 20121008185303) do
295 t.string "group" 304 t.string "group"
296 end 305 end
297 306
  307 + add_index "friendships", ["friend_id"], :name => "index_friendships_on_friend_id"
  308 + add_index "friendships", ["person_id", "friend_id"], :name => "index_friendships_on_person_id_and_friend_id"
  309 + add_index "friendships", ["person_id"], :name => "index_friendships_on_person_id"
  310 +
298 create_table "images", :force => true do |t| 311 create_table "images", :force => true do |t|
299 t.integer "parent_id" 312 t.integer "parent_id"
300 t.string "content_type" 313 t.string "content_type"
@@ -446,6 +459,7 @@ ActiveRecord::Schema.define(:version => 20121008185303) do @@ -446,6 +459,7 @@ ActiveRecord::Schema.define(:version => 20121008185303) do
446 end 459 end
447 460
448 add_index "profiles", ["environment_id"], :name => "index_profiles_on_environment_id" 461 add_index "profiles", ["environment_id"], :name => "index_profiles_on_environment_id"
  462 + add_index "profiles", ["identifier"], :name => "index_profiles_on_identifier"
449 add_index "profiles", ["region_id"], :name => "index_profiles_on_region_id" 463 add_index "profiles", ["region_id"], :name => "index_profiles_on_region_id"
450 464
451 create_table "qualifier_certifiers", :force => true do |t| 465 create_table "qualifier_certifiers", :force => true do |t|