This repository has been archived on 2024-07-22. You can view files and clone it, but cannot push or open issues or pull requests.
mastodon/db/migrate/20230422041142_revert_quote...

19 lines
486 B
Ruby

# per https://stackoverflow.com/a/15579694
require './db/migrate/20221224204906_add_quote_id_to_statuses.rb'
require './db/migrate/20221224220348_add_index_to_statuses_quote_id.rb'
class RevertQuoteRetweet < ActiveRecord::Migration[6.1]
disable_ddl_transaction!
def up
AddIndexToStatusesQuoteId.new.migrate(:down)
AddQuoteIdToStatuses.new.migrate(:down)
end
def down
AddQuoteIdToStatuses.new.migrate(:up)
AddIndexToStatusesQuoteId.new.migrate(:up)
end
end