remove currency model and all references

This commit is contained in:
João Geonizeli
2021-08-28 01:29:07 -03:00
parent 31078f87ae
commit 0d10e86526
74 changed files with 665 additions and 1561 deletions

View File

@@ -0,0 +1,11 @@
# frozen_string_literal: true
class DropCurrency < ActiveRecord::Migration[6.1]
def up
remove_reference(:balances, :currency, index: true, foreign_key: true)
remove_reference(:buy_crypto_orders, :currency, index: true, foreign_key: true)
remove_reference(:sell_crypto_orders, :currency, index: true, foreign_key: true)
remove_reference(:stake_orders, :currency, index: true, foreign_key: true)
drop_table(:currencies)
end
end