mirror of
https://github.com/maybe-finance/maybe.git
synced 2025-08-05 21:45:23 +02:00
Rework Account to use delegated types
This commit is contained in:
parent
938656de0e
commit
71939d6fb5
36 changed files with 282 additions and 0 deletions
6
db/migrate/20240202191746_add_accountable_to_account.rb
Normal file
6
db/migrate/20240202191746_add_accountable_to_account.rb
Normal file
|
@ -0,0 +1,6 @@
|
|||
class AddAccountableToAccount < ActiveRecord::Migration[7.2]
|
||||
def change
|
||||
add_column :accounts, :accountable_type, :string
|
||||
add_column :accounts, :accountable_id, :uuid
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue