Commit a3bae172d072a1cf5b7c022120cbe0a0e78041fc

Authored by Antonio Terceiro
1 parent 6bc2c9c5

db/schema.rb: update

Showing 1 changed file with 4 additions and 2 deletions   Show diff stats
@@ -95,14 +95,15 @@ ActiveRecord::Schema.define(:version => 20140827191326) do @@ -95,14 +95,15 @@ ActiveRecord::Schema.define(:version => 20140827191326) do
95 t.integer "license_id" 95 t.integer "license_id"
96 t.integer "image_id" 96 t.integer "image_id"
97 t.integer "position" 97 t.integer "position"
98 - t.integer "created_by_id"  
99 t.integer "spam_comments_count", :default => 0 98 t.integer "spam_comments_count", :default => 0
100 t.integer "author_id" 99 t.integer "author_id"
  100 + t.integer "created_by_id"
101 end 101 end
102 102
103 add_index "article_versions", ["article_id"], :name => "index_article_versions_on_article_id" 103 add_index "article_versions", ["article_id"], :name => "index_article_versions_on_article_id"
104 add_index "article_versions", ["path", "profile_id"], :name => "index_article_versions_on_path_and_profile_id" 104 add_index "article_versions", ["path", "profile_id"], :name => "index_article_versions_on_path_and_profile_id"
105 add_index "article_versions", ["path"], :name => "index_article_versions_on_path" 105 add_index "article_versions", ["path"], :name => "index_article_versions_on_path"
  106 + add_index "article_versions", ["published_at", "id"], :name => "index_article_versions_on_published_at_and_id"
106 107
107 create_table "articles", :force => true do |t| 108 create_table "articles", :force => true do |t|
108 t.string "name" 109 t.string "name"
@@ -145,9 +146,9 @@ ActiveRecord::Schema.define(:version => 20140827191326) do @@ -145,9 +146,9 @@ ActiveRecord::Schema.define(:version => 20140827191326) do
145 t.integer "license_id" 146 t.integer "license_id"
146 t.integer "image_id" 147 t.integer "image_id"
147 t.integer "position" 148 t.integer "position"
148 - t.integer "created_by_id"  
149 t.integer "spam_comments_count", :default => 0 149 t.integer "spam_comments_count", :default => 0
150 t.integer "author_id" 150 t.integer "author_id"
  151 + t.integer "created_by_id"
151 end 152 end
152 153
153 add_index "articles", ["comments_count"], :name => "index_articles_on_comments_count" 154 add_index "articles", ["comments_count"], :name => "index_articles_on_comments_count"
@@ -158,6 +159,7 @@ ActiveRecord::Schema.define(:version => 20140827191326) do @@ -158,6 +159,7 @@ ActiveRecord::Schema.define(:version => 20140827191326) do
158 add_index "articles", ["path", "profile_id"], :name => "index_articles_on_path_and_profile_id" 159 add_index "articles", ["path", "profile_id"], :name => "index_articles_on_path_and_profile_id"
159 add_index "articles", ["path"], :name => "index_articles_on_path" 160 add_index "articles", ["path"], :name => "index_articles_on_path"
160 add_index "articles", ["profile_id"], :name => "index_articles_on_profile_id" 161 add_index "articles", ["profile_id"], :name => "index_articles_on_profile_id"
  162 + add_index "articles", ["published_at", "id"], :name => "index_articles_on_published_at_and_id"
161 add_index "articles", ["slug"], :name => "index_articles_on_slug" 163 add_index "articles", ["slug"], :name => "index_articles_on_slug"
162 add_index "articles", ["translation_of_id"], :name => "index_articles_on_translation_of_id" 164 add_index "articles", ["translation_of_id"], :name => "index_articles_on_translation_of_id"
163 add_index "articles", ["type", "parent_id"], :name => "index_articles_on_type_and_parent_id" 165 add_index "articles", ["type", "parent_id"], :name => "index_articles_on_type_and_parent_id"