diff --git a/db/migrate/20250823145902_create_events.rb b/db/migrate/20250823145902_create_events.rb index d91c2bf..775d07c 100755 --- a/db/migrate/20250823145902_create_events.rb +++ b/db/migrate/20250823145902_create_events.rb @@ -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 diff --git a/db/migrate/20250911063815_add_allow_booking_during_event_to_events.rb b/db/migrate/20250911063815_add_allow_booking_during_event_to_events.rb deleted file mode 100644 index 83b2574..0000000 --- a/db/migrate/20250911063815_add_allow_booking_during_event_to_events.rb +++ /dev/null @@ -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