diff --git a/db/migrate/20260122143314_add_latest_missing_not_nullable_to_existing_tables.rb b/db/migrate/20260122143314_add_latest_missing_not_nullable_to_existing_tables.rb new file mode 100644 index 000000000..fda6c4715 --- /dev/null +++ b/db/migrate/20260122143314_add_latest_missing_not_nullable_to_existing_tables.rb @@ -0,0 +1,20 @@ +# frozen_string_literal: true + +class AddLatestMissingNotNullableToExistingTables < ActiveRecord::Migration[7.0] + def change + change_column_null :ports, :card_id, false + + change_column_null :moved_connections, :port_from_id, false + + change_column_null :modeles, :manufacturer_id, false + change_column_null :modeles, :architecture_id, false + + change_column_null :connections, :port_id, false + + change_column_null :cards, :composant_id, false + + change_column_null :composants, :enclosure_id, false + + change_column_null :servers, :modele_id, false + end +end