fix: clean up payout migrations, remove ghosts, add defaults and indexes

This commit is contained in:
kbe
2025-09-17 00:02:59 +02:00
parent bc09feafc1
commit d2c43cfc2f
7 changed files with 13 additions and 22 deletions

View File

@@ -6,6 +6,8 @@ class CreateEarnings < ActiveRecord::Migration[8.0]
t.integer :status
t.string :stripe_payout_id
t.integer :net_amount_cents
t.references :event, null: false, foreign_key: false, index: true
t.references :user, null: false, foreign_key: false, index: true
t.references :order, null: false, foreign_key: false, index: true