To check out this repository please hg clone the following URL, or open the URL using EasyMercurial or your preferred Mercurial client.
root / .svn / pristine / 38 / 38de9a35c49c6806866d6eea334cfca945dbc5f9.svn-base @ 1297:0a574315af3e
History | View | Annotate | Download (351 Bytes)
| 1 |
class AddMissingIndexesToWorkflows < ActiveRecord::Migration |
|---|---|
| 2 |
def self.up |
| 3 |
add_index :workflows, :old_status_id |
| 4 |
add_index :workflows, :role_id |
| 5 |
add_index :workflows, :new_status_id |
| 6 |
end |
| 7 |
|
| 8 |
def self.down |
| 9 |
remove_index :workflows, :old_status_id |
| 10 |
remove_index :workflows, :role_id |
| 11 |
remove_index :workflows, :new_status_id |
| 12 |
end |
| 13 |
end |