From 03ac36d46c8af6f0601c8ec2bb58b63ccd2337ab Mon Sep 17 00:00:00 2001 From: Zahi Akiva Date: Wed, 27 Sep 2017 15:19:38 +0300 Subject: [PATCH] Drop Container Component Statuses --- ...27114802_drop_container_component_statuses.rb | 16 ++++++++++++++++ db/schema.yml | 8 -------- 2 files changed, 16 insertions(+), 8 deletions(-) create mode 100644 db/migrate/20170927114802_drop_container_component_statuses.rb diff --git a/db/migrate/20170927114802_drop_container_component_statuses.rb b/db/migrate/20170927114802_drop_container_component_statuses.rb new file mode 100644 index 000000000..e8175f064 --- /dev/null +++ b/db/migrate/20170927114802_drop_container_component_statuses.rb @@ -0,0 +1,16 @@ +class DropContainerComponentStatuses < ActiveRecord::Migration[5.0] + def up + drop_table :container_component_statuses + end + + def down + create_table :container_component_statuses do |t| + t.belongs_to :ems, :type => :bigint + t.string :name + t.string :condition + t.string :status + t.string :message + t.string :error + end + end +end diff --git a/db/schema.yml b/db/schema.yml index d0f33450a..0fa19e961 100644 --- a/db/schema.yml +++ b/db/schema.yml @@ -640,14 +640,6 @@ container_builds: - container_project_id - ems_id - created_on -container_component_statuses: -- id -- ems_id -- name -- condition -- status -- message -- error container_conditions: - id - container_entity_id