discourse/db/migrate/20130615073305_remove_topic_id_from_uploads.rb
Josh Soref 308c032293
DEV: Fix spelling mistakes in DB migrations (#12811)
* spelling: initial
* spelling: integer
* spelling: irreversible
* spelling: mislabeled
* spelling: notification
* spelling: nullable
* spelling: targeted
2021-04-23 18:25:10 +02:00

12 lines
239 B
Ruby

# frozen_string_literal: true
class RemoveTopicIdFromUploads < ActiveRecord::Migration[4.2]
def up
remove_column :uploads, :topic_id
end
def down
add_column :uploads, :topic_id, :integer, null: false, default: -1
end
end