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

@@ -22,11 +22,16 @@ class CreateEvents < ActiveRecord::Migration[8.0]
# Allow ticket sell during the event
t.boolean :allow_booking_during_event, default: false, null: false
# Payout fields
t.integer :payout_status
t.datetime :payout_requested_at
t.timestamps
end
add_index :events, :state
add_index :events, :featured
add_index :events, [ :latitude, :longitude ]
add_index :events, :payout_status
end
end