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
db/schema.rb
... ... @@ -9,7 +9,7 @@
9 9 #
10 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 14 create_table "abuse_reports", :force => true do |t|
15 15 t.integer "reporter_id"
... ... @@ -88,6 +88,8 @@ ActiveRecord::Schema.define(:version => 20121008185303) do
88 88 t.integer "license_id"
89 89 end
90 90  
  91 + add_index "article_versions", ["article_id"], :name => "index_article_versions_on_article_id"
  92 +
91 93 create_table "articles", :force => true do |t|
92 94 t.string "name"
93 95 t.string "slug"
... ... @@ -129,6 +131,10 @@ ActiveRecord::Schema.define(:version => 20121008185303) do
129 131 t.integer "license_id"
130 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 138 add_index "articles", ["translation_of_id"], :name => "index_articles_on_translation_of_id"
133 139  
134 140 create_table "articles_categories", :id => false, :force => true do |t|
... ... @@ -217,6 +223,8 @@ ActiveRecord::Schema.define(:version => 20121008185303) do
217 223 t.string "referrer"
218 224 end
219 225  
  226 + add_index "comments", ["source_id", "spam"], :name => "index_comments_on_source_id_and_spam"
  227 +
220 228 create_table "contact_lists", :force => true do |t|
221 229 t.text "list"
222 230 t.string "error_fetching"
... ... @@ -280,6 +288,7 @@ ActiveRecord::Schema.define(:version => 20121008185303) do
280 288 t.integer "update_errors", :default => 0
281 289 end
282 290  
  291 + add_index "external_feeds", ["blog_id"], :name => "index_external_feeds_on_blog_id"
283 292 add_index "external_feeds", ["enabled"], :name => "index_external_feeds_on_enabled"
284 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 304 t.string "group"
296 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 311 create_table "images", :force => true do |t|
299 312 t.integer "parent_id"
300 313 t.string "content_type"
... ... @@ -446,6 +459,7 @@ ActiveRecord::Schema.define(:version => 20121008185303) do
446 459 end
447 460  
448 461 add_index "profiles", ["environment_id"], :name => "index_profiles_on_environment_id"
  462 + add_index "profiles", ["identifier"], :name => "index_profiles_on_identifier"
449 463 add_index "profiles", ["region_id"], :name => "index_profiles_on_region_id"
450 464  
451 465 create_table "qualifier_certifiers", :force => true do |t|
... ...