Added index for pages.

This commit is contained in:
Benjamin Meichsner 2009-08-15 17:36:13 +02:00
parent e75a42d509
commit 24854984ed
2 changed files with 5 additions and 1 deletions

View file

@ -11,7 +11,8 @@ class CreatePages < ActiveRecord::Migration
t.timestamps
end
add_index :pages, :title
add_index :pages, :permalink
Page.create_versioned_table # Automaticly creates pages_versions table
end