canvas-lms/db/migrate/20120402054921_populate_con...

12 lines
277 B
Ruby

class PopulateConversationRootAccountIds < ActiveRecord::Migration
tag :predeploy
self.transactional = false
def self.up
DataFixup::PopulateConversationRootAccountIds.run
end
def self.down
execute "UPDATE conversations SET root_account_ids = NULL"
end
end