diff --git a/db/migrate/027_create_wikis.rb b/db/migrate/027_create_wikis.rb index ed6784296..284eee2e2 100644 --- a/db/migrate/027_create_wikis.rb +++ b/db/migrate/027_create_wikis.rb @@ -4,7 +4,7 @@ class CreateWikis < ActiveRecord::Migration t.column :project_id, :integer, :null => false t.column :start_page, :string, :limit => 255, :null => false t.column :status, :integer, :default => 1, :null => false - end + end add_index :wikis, :project_id, :name => :wikis_project_id end