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,12 @@
class ChangeCurrencyPrice < ActiveRecord::Migration[5.2]
def up
Currency.find_each do |c|
c.update(price: 1) if c.price.blank?
end
change_column :currencies, :price, :decimal, precision: 32, scale: 16, null: false, default: 1.0
end
def down
change_column :currencies, :price, :decimal, precision: 32, scale: 16
end
end