Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolas-brousse committed Mar 5, 2025
1 parent 57b6112 commit 653eba5
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 53 deletions.
42 changes: 0 additions & 42 deletions app/views/servers/_draw_server.html.erb

This file was deleted.

6 changes: 3 additions & 3 deletions db/migrate/20250305152636_drop_type_composants.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,15 @@ class MigrationComposant < ActiveRecord::Base
class DropTypeComposants < ActiveRecord::Migration[8.0]
def change
up_only do
MigrationComposant.where(type_composant: MigrationTypeComposant.find_by(name: "SLOT"))
MigrationComposant.where(type_composant: MigrationTypeComposant.find_by(name: "SLOT")).destroy_all
end

revert do
add_reference :composants, :type_composants, foreign_key: true

create_table :type_composants do |t| # rubocop:disable Rails/CreateTableWithTimestamps
t.string :name
end

add_reference :composants, :type_composant, foreign_key: true
end
end
end
9 changes: 1 addition & 8 deletions db/schema.rb

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 653eba5

Please sign in to comment.