From 70118fb136b1318843e7146ed2e31e575c884ce3 Mon Sep 17 00:00:00 2001 From: Eric Davis Date: Sat, 17 Oct 2009 22:23:29 +0000 Subject: Adding missing database indexes for foreign keys and STI fields. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2928 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- db/migrate/20091017213757_add_missing_indexes_to_boards.rb | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 db/migrate/20091017213757_add_missing_indexes_to_boards.rb (limited to 'db/migrate/20091017213757_add_missing_indexes_to_boards.rb') diff --git a/db/migrate/20091017213757_add_missing_indexes_to_boards.rb b/db/migrate/20091017213757_add_missing_indexes_to_boards.rb new file mode 100644 index 000000000..d3e94226a --- /dev/null +++ b/db/migrate/20091017213757_add_missing_indexes_to_boards.rb @@ -0,0 +1,9 @@ +class AddMissingIndexesToBoards < ActiveRecord::Migration + def self.up + add_index :boards, :last_message_id + end + + def self.down + remove_index :boards, :last_message_id + end +end -- cgit v1.2.3