mirror of
https://github.com/maybe-finance/maybe.git
synced 2025-07-21 14:19:39 +02:00
16 lines
406 B
Ruby
16 lines
406 B
Ruby
|
class CreateAccountEntries < ActiveRecord::Migration[7.2]
|
||
|
def change
|
||
|
create_table :account_entries, id: :uuid do |t|
|
||
|
t.references :account, null: false, foreign_key: true, type: :uuid
|
||
|
t.string :entryable_type
|
||
|
t.uuid :entryable_id
|
||
|
t.decimal :amount, precision: 19, scale: 4
|
||
|
t.string :currency
|
||
|
t.date :date
|
||
|
t.string :name
|
||
|
|
||
|
t.timestamps
|
||
|
end
|
||
|
end
|
||
|
end
|