Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] Drop unused LifecycleEvent table #609

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions db/migrate/20210909212144_drop_lifecycle_events.rb
Original file line number Diff line number Diff line change
@@ -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
1 change: 0 additions & 1 deletion spec/support/table_list.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down