Sha256: 417c63edf5d92180c4d66d023bc0bba8a6883affe9623b9102d5e95a10262b3f

Contents?: true

Size: 345 Bytes

Versions: 11

Compression:

Stored size: 345 Bytes

Contents

# encoding: UTF-8
class AddApiIds < ActiveRecord::Migration
  def self.up
    add_column :surveys, :api_id, :string
    add_column :questions, :api_id, :string
    add_column :answers, :api_id, :string
  end

  def self.down
    remove_column :surveys, :api_id
    remove_column :questions, :api_id
    remove_column :answers, :api_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_api_ids.rb
affectiva-surveyor-1.5.0.pre.disco.2 lib/generators/surveyor/templates/db/migrate/add_api_ids.rb
hssc_surveyor-1.4.3.pre lib/generators/surveyor/templates/db/migrate/add_api_ids.rb
hssc_surveyor-1.4.2.pre lib/generators/surveyor/templates/db/migrate/add_api_ids.rb
hssc_surveyor-1.4.1.pre lib/generators/surveyor/templates/db/migrate/add_api_ids.rb
surveyor-1.4.0 lib/generators/surveyor/templates/db/migrate/add_api_ids.rb
surveyor-1.3.0 lib/generators/surveyor/templates/db/migrate/add_api_ids.rb
surveyor-1.2.0 lib/generators/surveyor/templates/db/migrate/add_api_ids.rb
surveyor-1.1.0 lib/generators/surveyor/templates/db/migrate/add_api_ids.rb
surveyor-1.0.1 lib/generators/surveyor/templates/db/migrate/add_api_ids.rb
surveyor-1.0.0 lib/generators/surveyor/templates/db/migrate/add_api_ids.rb