remove currency model and all references
This commit is contained in:
11
db/migrate/20210828041104_drop_currency.rb
Normal file
11
db/migrate/20210828041104_drop_currency.rb
Normal 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
|
||||
Reference in New Issue
Block a user