Move `allow_booking_during_event` into base migration

This commit is contained in:
kbe
2025-09-15 19:06:05 +02:00
parent d1ef962f74
commit 20f926cd7a
2 changed files with 3 additions and 5 deletions

View File

@@ -19,6 +19,9 @@ class CreateEvents < ActiveRecord::Migration[8.0]
t.boolean :featured, default: false, null: false
t.references :user, null: false, foreign_key: false
# Allow ticket sell during the event
t.boolean :allow_booking_during_event, default: false, null: false
t.timestamps
end

View File

@@ -1,5 +0,0 @@
class AddAllowBookingDuringEventToEvents < ActiveRecord::Migration[8.0]
def change
add_column :events, :allow_booking_during_event, :boolean, default: false, null: false
end
end