Sha256: ab992042fc09129f4903f154625c0a2b62151460eb024151e3a1442e9647acd3

Contents?: true

Size: 244 Bytes

Versions: 31

Compression:

Stored size: 244 Bytes

Contents

class AddIndexToResponseSets < ActiveRecord::Migration
  def self.up
    add_index(:response_sets, :access_code, :name => 'response_sets_ac_idx')
  end

  def self.down
    remove_index(:response_sets, :name => 'response_sets_ac_idx')
  end
end

Version data entries

31 entries across 29 versions & 3 rubygems

Version Path
surveyor-0.22.0 lib/generators/surveyor/templates/db/migrate/add_index_to_response_sets.rb
surveyor-0.21.0 lib/generators/surveyor/templates/db/migrate/add_index_to_response_sets.rb
surveyor-0.20.0 generators/surveyor/templates/migrate/add_index_to_response_sets.rb
surveyor-0.19.7 generators/surveyor/templates/migrate/add_index_to_response_sets.rb
surveyor-0.19.6 generators/surveyor/templates/migrate/add_index_to_response_sets.rb
surveyor-0.19.5 generators/surveyor/templates/migrate/add_index_to_response_sets.rb
surveyor-0.19.4 generators/surveyor/templates/migrate/add_index_to_response_sets.rb
surveyor-0.19.3 generators/surveyor/templates/migrate/add_index_to_response_sets.rb
ccls-surveyor-1.0.0 generators/surveyor/templates/migrate/add_index_to_response_sets.rb
surveyor-0.19.2 generators/surveyor/templates/migrate/add_index_to_response_sets.rb
jakewendt-surveyor-0.11.3 generators/surveyor/templates/migrate/add_index_to_response_sets.rb
surveyor-0.19.1 generators/surveyor/templates/migrate/add_index_to_response_sets.rb
surveyor-0.19.0 generators/surveyor/templates/migrate/add_index_to_response_sets.rb
surveyor-0.18.2 generators/surveyor/templates/migrate/add_index_to_response_sets.rb
surveyor-0.18.1 generators/surveyor/templates/migrate/add_index_to_response_sets.rb
surveyor-0.18.0 spec/test_app/db/migrate/20101119172439_add_index_to_response_sets.rb
surveyor-0.18.0 generators/surveyor/templates/migrate/add_index_to_response_sets.rb
surveyor-0.17.0 spec/test_app/db/migrate/20101119172439_add_index_to_response_sets.rb
surveyor-0.17.0 generators/surveyor/templates/migrate/add_index_to_response_sets.rb
surveyor-0.16.1 generators/surveyor/templates/migrate/add_index_to_response_sets.rb