aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--db/migrate/095_add_post_redirect_user_index.rb11
-rw-r--r--db/schema.rb3
2 files changed, 13 insertions, 1 deletions
diff --git a/db/migrate/095_add_post_redirect_user_index.rb b/db/migrate/095_add_post_redirect_user_index.rb
new file mode 100644
index 000000000..05d5f7a35
--- /dev/null
+++ b/db/migrate/095_add_post_redirect_user_index.rb
@@ -0,0 +1,11 @@
+class AddPostRedirectUserIndex < ActiveRecord::Migration
+ # This index is for admin interface
+
+ def self.up
+ add_index :post_redirects, :user_id
+ end
+
+ def self.down
+ remove_index :post_redirects, :user_id
+ end
+end
diff --git a/db/schema.rb b/db/schema.rb
index cf117c4e3..11eb3ced0 100644
--- a/db/schema.rb
+++ b/db/schema.rb
@@ -9,7 +9,7 @@
#
# It's strongly recommended to check this file into your version control system.
-ActiveRecord::Schema.define(:version => 94) do
+ActiveRecord::Schema.define(:version => 95) do
create_table "acts_as_xapian_jobs", :force => true do |t|
t.string "model", :null => false
@@ -159,6 +159,7 @@ ActiveRecord::Schema.define(:version => 94) do
add_index "post_redirects", ["email_token"], :name => "index_post_redirects_on_email_token"
add_index "post_redirects", ["token"], :name => "index_post_redirects_on_token"
add_index "post_redirects", ["updated_at"], :name => "index_post_redirects_on_updated_at"
+ add_index "post_redirects", ["user_id"], :name => "index_post_redirects_on_user_id"
create_table "profile_photos", :force => true do |t|
t.binary "data", :null => false