Files
Dena/db/migrate/20180315150348_migrate_all_bank_models_to_fiat.rb
2026-08-13 19:50:53 +03:30

10 lines
321 B
Ruby

# encoding: UTF-8
# frozen_string_literal: true
class MigrateAllBankModelsToFiat < ActiveRecord::Migration[4.2]
def change
execute %[ UPDATE deposits SET type = 'Deposits::Fiat' WHERE type = 'Deposits::Bank' ]
execute %[ UPDATE withdraws SET type = 'Withdraws::Fiat' WHERE type = 'Withdraws::Bank' ]
end
end