Files
codeocean/db/migrate/20140918063522_add_hashed_content_to_files.rb
2023-08-05 21:22:47 +02:00

14 lines
291 B
Ruby

# frozen_string_literal: true
class AddHashedContentToFiles < ActiveRecord::Migration[4.2]
def change
add_column :files, :hashed_content, :string
reversible do |direction|
direction.up do
CodeOcean::File.unscope(:order).all.each(&:save)
end
end
end
end