Skip to content

Commit

Permalink
device template migration fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
timalces committed Feb 28, 2024
1 parent 95346fd commit 8ec5801
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions db/migrate/20240216141238_seed_network_device_template.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
class SeedNetworkDeviceTemplate < ActiveRecord::Migration[7.1]
class Template < ApplicationRecord; end

def change
Template.reset_column_information
reversible do |dir|

dir.up do
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ class MigrateDefaultRackTemplateToTag < ActiveRecord::Migration[7.1]
class Template < ApplicationRecord; end

def change
Template.reset_column_information
reversible do |dir|
dir.up do
# Intentionally not using Template.default_rack_template here!
Expand Down

0 comments on commit 8ec5801

Please sign in to comment.