Archive: ComponentOwl Rails app, DB backups, go redirect script

This commit is contained in:
EC2 Default User
2026-03-23 16:20:05 +00:00
commit 50037f386f
218 changed files with 14558 additions and 0 deletions

View File

@@ -0,0 +1,16 @@
class ChangeProductUpgradesRelationships < ActiveRecord::Migration
def self.up
change_table :product_upgrades do |t|
t.remove :product_id
t.integer :upgradable_id, :references => nil
t.integer :upgradable_to_id, :references => nil
t.string :upgradable_type, :default => 'ProductEdition'
t.string :upgradable_to_type
end
ProductUpgrade.update_all(["upgradable_id = product_edition_id"])
remove_column :product_upgrades, :product_edition_id
end
def self.down
end
end