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,14 @@
class ChangeMarketData < ActiveRecord::Migration[5.2]
def change
add_column :markets, :data, :json, after: :position
Market.all.each do |m|
next if m.data_encrypted.nil?
m.data = Vault::Rails.decrypt("transit", "#{Vault.application}_markets_data", m.data_encrypted)
m.save
end
remove_column :markets, :data_encrypted
end
end