diff --git a/db/migrate/20210909212144_drop_lifecycle_events.rb b/db/migrate/20210909212144_drop_lifecycle_events.rb new file mode 100644 index 000000000..fc2a83ff0 --- /dev/null +++ b/db/migrate/20210909212144_drop_lifecycle_events.rb @@ -0,0 +1,20 @@ +class DropLifecycleEvents < ActiveRecord::Migration[6.0] + def up + drop_table :lifecycle_events + end + + def down + create_table "lifecycle_events", force: :cascade do |t| + t.string "guid" + t.string "status" + t.string "event" + t.string "message" + t.string "location" + t.bigint "vm_or_template_id" + t.string "created_by" + t.datetime "created_on" + t.index ["guid"], name: "index_lifecycle_events_on_guid", unique: true + t.index ["vm_or_template_id"], name: "index_lifecycle_events_on_vm_id" + end + end +end diff --git a/spec/support/table_list.txt b/spec/support/table_list.txt index 2feda42a2..01eb93660 100644 --- a/spec/support/table_list.txt +++ b/spec/support/table_list.txt @@ -133,7 +133,6 @@ iso_images jobs key_pairs_vms lans -lifecycle_events load_balancer_health_check_members load_balancer_health_checks load_balancer_listener_pools