canvas-lms/db/migrate/20110920165939_add_hidden_t...

13 lines
293 B
Ruby

class AddHiddenToSubmissionComments < ActiveRecord::Migration[4.2]
tag :predeploy
def self.up
add_column :submission_comments, :hidden, :boolean, :default => false
SubmissionComment.update_all :hidden => false
end
def self.down
drop_column :submission_comments
end
end