Add a user index to the changeset table.
This commit is contained in:
parent
476e3f2b55
commit
c4f937f099
1 changed files with 9 additions and 0 deletions
9
db/migrate/026_add_changeset_user_index.rb
Normal file
9
db/migrate/026_add_changeset_user_index.rb
Normal file
|
@ -0,0 +1,9 @@
|
|||
class AddChangesetUserIndex < ActiveRecord::Migration
|
||||
def self.up
|
||||
add_index "changesets", ["user_id"], :name => "changesets_user_id_idx"
|
||||
end
|
||||
|
||||
def self.down
|
||||
remove_index "changesets", :name => "changesets_user_id_idx"
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue