2019-05-02 18:17:27 -04:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2017-08-31 00:06:56 -04:00
|
|
|
class RemoveTopicIdFromUploads < ActiveRecord::Migration[4.2]
|
2013-06-15 03:54:49 -04:00
|
|
|
def up
|
|
|
|
remove_column :uploads, :topic_id
|
|
|
|
end
|
|
|
|
|
|
|
|
def down
|
2021-04-23 12:25:10 -04:00
|
|
|
add_column :uploads, :topic_id, :integer, null: false, default: -1
|
2013-06-15 03:54:49 -04:00
|
|
|
end
|
|
|
|
end
|