diff options
Diffstat (limited to 'db/migrate/20091017213757_add_missing_indexes_to_boards.rb')
-rw-r--r-- | db/migrate/20091017213757_add_missing_indexes_to_boards.rb | 9 |
1 files changed, 9 insertions, 0 deletions
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 |