Redmine 3.4.4
This commit is contained in:
commit
64924a6376
2112 changed files with 259028 additions and 0 deletions
11
db/migrate/20091017213228_add_missing_indexes_to_watchers.rb
Normal file
11
db/migrate/20091017213228_add_missing_indexes_to_watchers.rb
Normal file
|
@ -0,0 +1,11 @@
|
|||
class AddMissingIndexesToWatchers < ActiveRecord::Migration
|
||||
def self.up
|
||||
add_index :watchers, :user_id
|
||||
add_index :watchers, [:watchable_id, :watchable_type]
|
||||
end
|
||||
|
||||
def self.down
|
||||
remove_index :watchers, :user_id
|
||||
remove_index :watchers, :column => [:watchable_id, :watchable_type]
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue