Sha256: d13a7edb5727efdd1102411486eee062342d84396b88541ddf773844a07f5251

Contents?: true

Size: 255 Bytes

Versions: 11

Compression:

Stored size: 255 Bytes

Contents

# encoding: UTF-8
class DropUniqueIndexOnAccessCodeInSurveys < ActiveRecord::Migration
  def self.up
    remove_index( :surveys, :name => 'surveys_ac_idx' )
  end

  def self.down
    add_index(:surveys, :access_code, :name => 'surveys_ac_idx')
  end
end

Version data entries

11 entries across 11 versions & 4 rubygems

Version Path
upgrade_surveyor-1.4.2 lib/generators/surveyor/templates/db/migrate/drop_unique_index_on_access_code_in_surveys.rb
affectiva-surveyor-1.5.0.pre.disco.2 lib/generators/surveyor/templates/db/migrate/drop_unique_index_on_access_code_in_surveys.rb
hssc_surveyor-1.4.3.pre lib/generators/surveyor/templates/db/migrate/drop_unique_index_on_access_code_in_surveys.rb
hssc_surveyor-1.4.2.pre lib/generators/surveyor/templates/db/migrate/drop_unique_index_on_access_code_in_surveys.rb
hssc_surveyor-1.4.1.pre lib/generators/surveyor/templates/db/migrate/drop_unique_index_on_access_code_in_surveys.rb
surveyor-1.4.0 lib/generators/surveyor/templates/db/migrate/drop_unique_index_on_access_code_in_surveys.rb
surveyor-1.3.0 lib/generators/surveyor/templates/db/migrate/drop_unique_index_on_access_code_in_surveys.rb
surveyor-1.2.0 lib/generators/surveyor/templates/db/migrate/drop_unique_index_on_access_code_in_surveys.rb
surveyor-1.1.0 lib/generators/surveyor/templates/db/migrate/drop_unique_index_on_access_code_in_surveys.rb
surveyor-1.0.1 lib/generators/surveyor/templates/db/migrate/drop_unique_index_on_access_code_in_surveys.rb
surveyor-1.0.0 lib/generators/surveyor/templates/db/migrate/drop_unique_index_on_access_code_in_surveys.rb