--- /dev/null
+class AddLftAndRgtIndexesToProjects < ActiveRecord::Migration
+ def self.up
+ add_index :projects, :lft
+ add_index :projects, :rgt
+ end
+
+ def self.down
+ remove_index :projects, :lft
+ remove_index :projects, :rgt
+ end
+end
--- /dev/null
+class AddIndexToSettingsName < ActiveRecord::Migration
+ def self.up
+ add_index :settings, :name
+ end
+
+ def self.down
+ remove_index :settings, :name
+ end
+end
--- /dev/null
+class AddIndexesToIssueStatus < ActiveRecord::Migration
+ def self.up
+ add_index :issue_statuses, :position
+ add_index :issue_statuses, :is_closed
+ add_index :issue_statuses, :is_default
+ end
+
+ def self.down
+ remove_index :issue_statuses, :position
+ remove_index :issue_statuses, :is_closed
+ remove_index :issue_statuses, :is_default
+ end
+end