Sha256: 648cd08608a4b1e52b850a3e3796915d54115c774b10087bf2911c7683e2a289

Contents?: true

Size: 319 Bytes

Versions: 11

Compression:

Stored size: 319 Bytes

Contents

# encoding: UTF-8
class AddSectionIdToResponses < ActiveRecord::Migration
  def self.up
    add_column :responses, :survey_section_id, :integer
    add_index :responses, :survey_section_id
  end

  def self.down
    remove_index :responses, :survey_section_id
    remove_column :responses, :survey_section_id
  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/add_section_id_to_responses.rb
affectiva-surveyor-1.5.0.pre.disco.2 lib/generators/surveyor/templates/db/migrate/add_section_id_to_responses.rb
hssc_surveyor-1.4.3.pre lib/generators/surveyor/templates/db/migrate/add_section_id_to_responses.rb
hssc_surveyor-1.4.2.pre lib/generators/surveyor/templates/db/migrate/add_section_id_to_responses.rb
hssc_surveyor-1.4.1.pre lib/generators/surveyor/templates/db/migrate/add_section_id_to_responses.rb
surveyor-1.4.0 lib/generators/surveyor/templates/db/migrate/add_section_id_to_responses.rb
surveyor-1.3.0 lib/generators/surveyor/templates/db/migrate/add_section_id_to_responses.rb
surveyor-1.2.0 lib/generators/surveyor/templates/db/migrate/add_section_id_to_responses.rb
surveyor-1.1.0 lib/generators/surveyor/templates/db/migrate/add_section_id_to_responses.rb
surveyor-1.0.1 lib/generators/surveyor/templates/db/migrate/add_section_id_to_responses.rb
surveyor-1.0.0 lib/generators/surveyor/templates/db/migrate/add_section_id_to_responses.rb