Sha256: 76aeb293a90ddaa38c6c3e6880e3e94e0787f7d39ea4628656a67b8d2399f791

Contents?: true

Size: 327 Bytes

Versions: 7

Compression:

Stored size: 327 Bytes

Contents

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

7 entries across 7 versions & 1 rubygems

Version Path
surveyor-0.22.0 lib/generators/surveyor/templates/db/migrate/add_api_ids.rb
surveyor-0.21.0 lib/generators/surveyor/templates/db/migrate/add_api_ids.rb
surveyor-0.20.0 generators/surveyor/templates/migrate/add_api_ids.rb
surveyor-0.19.7 generators/surveyor/templates/migrate/add_api_ids.rb
surveyor-0.19.6 generators/surveyor/templates/migrate/add_api_ids.rb
surveyor-0.19.5 generators/surveyor/templates/migrate/add_api_ids.rb
surveyor-0.19.4 generators/surveyor/templates/migrate/add_api_ids.rb