canvas-lms/db/migrate/20121113002813_add_cant_go_...

12 lines
250 B
Ruby

class AddCantGoBackToQuiz < ActiveRecord::Migration
tag :predeploy
def self.up
add_column :quizzes, :cant_go_back, :boolean
Quizzes::Quiz.reset_column_information
end
def self.down
remove_column :quizzes, :cant_go_back
end
end