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 t.timestamps
end end
add_index :pages, :title
add_index :pages, :permalink
Page.create_versioned_table # Automaticly creates pages_versions table Page.create_versioned_table # Automaticly creates pages_versions table
end end

View file

@ -237,6 +237,9 @@ ActiveRecord::Schema.define(:version => 20090812110010) do
t.datetime "updated_at" t.datetime "updated_at"
end end
add_index "pages", ["permalink"], :name => "index_pages_on_permalink"
add_index "pages", ["title"], :name => "index_pages_on_title"
create_table "schema_info", :id => false, :force => true do |t| create_table "schema_info", :id => false, :force => true do |t|
t.integer "version" t.integer "version"
end end