Initial commit

This commit is contained in:
Yaser
2026-08-13 19:50:53 +03:30
commit 38084458fe
879 changed files with 95198 additions and 0 deletions

View File

@@ -0,0 +1,10 @@
class AddCurrencyStates < ActiveRecord::Migration[5.2]
def change
add_column :currencies, :deposit_enabled, :boolean, default: true, null: false, after: :enabled
add_column :currencies, :withdrawal_enabled, :boolean, default: true, null: false, after: :deposit_enabled
rename_column :currencies, :enabled, :visible
if index_exists?(:currencies, :visible, name: 'index_currencies_on_enabled_and_code')
remove_index :currencies, name: :index_currencies_on_enabled_and_code
end
end
end