Move `allow_booking_during_event` into base migration
This commit is contained in:
@@ -19,6 +19,9 @@ class CreateEvents < ActiveRecord::Migration[8.0]
|
|||||||
t.boolean :featured, default: false, null: false
|
t.boolean :featured, default: false, null: false
|
||||||
t.references :user, null: false, foreign_key: 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
|
t.timestamps
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
@@ -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
|
|
||||||
Reference in New Issue
Block a user