19 lines
486 B
Ruby
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
|