diff --git a/db/migrate/20241023101945_add_status_attribute_to_room.rb b/db/migrate/20241023101945_add_status_attribute_to_room.rb index 0089d7eb8..982494c4f 100644 --- a/db/migrate/20241023101945_add_status_attribute_to_room.rb +++ b/db/migrate/20241023101945_add_status_attribute_to_room.rb @@ -11,7 +11,7 @@ def change up_only do MigrationRoom.find_each do |room| status = room.display_on_home_page ? 0 : 1 - room.update(status: status) + room.update!(status: status) end change_column_null(:rooms, :status, false)