Sha256: eb006be5e0c33501ab0129f39637f8c01d772614e97278cdad2ed31705364b7f

Contents?: true

Size: 214 Bytes

Versions: 37

Compression:

Stored size: 214 Bytes

Contents

class AddCorrectAnswerIdToQuestions < ActiveRecord::Migration
  def self.up
    add_column :questions, :correct_answer_id, :integer
  end

  def self.down
    remove_column :questions, :correct_answer_id
  end
end

Version data entries

37 entries across 35 versions & 3 rubygems

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