mirror of
https://github.com/maybe-finance/maybe.git
synced 2025-07-21 14:19:39 +02:00
* Initial foundational pass at multi-currency * Default format currency * More work on currency and exchanging * Re-build currencies on change * Currency import/setup * Background job overhaul + cheaper OXR plan support * Lint fixes * Test fixes * Multi-currency setup instructions * Allow decimals in the balance field * Spacing fix for form --------- Signed-off-by: Josh Pigford <josh@joshpigford.com>
12 lines
250 B
Ruby
12 lines
250 B
Ruby
class CreateCurrencies < ActiveRecord::Migration[7.2]
|
|
def change
|
|
create_table :currencies, id: :uuid do |t|
|
|
t.string :name
|
|
t.string :iso_code
|
|
|
|
t.timestamps
|
|
end
|
|
|
|
add_index :currencies, :iso_code, unique: true
|
|
end
|
|
end
|