Added index for pages.
This commit is contained in:
parent
e75a42d509
commit
24854984ed
2 changed files with 5 additions and 1 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue