Remove conversation URI (#11423)

It is not part of ActivityPub and will free up a lot of space
This commit is contained in:
Eugen Rochko
2019-07-28 17:30:12 +02:00
committed by GitHub
parent cfb2ed7823
commit 75f7f9930e
7 changed files with 17 additions and 42 deletions

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
class RemoveBoostsWideningAudience < ActiveRecord::Migration[5.2]
disable_ddl_transaction!

View File

@ -0,0 +1,12 @@
# frozen_string_literal: true
class RemoveUriFromConversations < ActiveRecord::Migration[5.2]
def up
safety_assured { remove_column :conversations, :uri, :string }
end
def down
add_column :conversations, :uri, :string
add_index :conversations, :uri, unique: true
end
end