Class: AddIndexToResponseSets
- Inherits:
-
ActiveRecord::Migration
- Object
- ActiveRecord::Migration
- AddIndexToResponseSets
- Defined in:
- lib/generators/surveyor/templates/db/migrate/add_index_to_response_sets.rb
Class Method Summary collapse
Class Method Details
.down ⇒ Object
7 8 9 |
# File 'lib/generators/surveyor/templates/db/migrate/add_index_to_response_sets.rb', line 7 def self.down remove_index(:response_sets, :name => 'response_sets_ac_idx') end |
.up ⇒ Object
3 4 5 |
# File 'lib/generators/surveyor/templates/db/migrate/add_index_to_response_sets.rb', line 3 def self.up add_index(:response_sets, :access_code, :name => 'response_sets_ac_idx') end |