1
0
Fork 0
mirror of https://github.com/maybe-finance/maybe.git synced 2025-07-23 15:19:38 +02:00
Maybe/db/migrate/20240202191746_add_accountable_to_account.rb

8 lines
229 B
Ruby
Raw Normal View History

2024-02-02 23:09:35 +00:00
class AddAccountableToAccount < ActiveRecord::Migration[7.2]
def change
add_column :accounts, :accountable_type, :string
add_column :accounts, :accountable_id, :uuid
2024-02-02 21:26:20 +00:00
add_index :accounts, :accountable_type
2024-02-02 23:09:35 +00:00
end
end