Skip to content

Commit

Permalink
Drop blueprints and blueprint_id in dialogs and service_templates
Browse files Browse the repository at this point in the history
  • Loading branch information
bzwei committed Oct 27, 2017
1 parent 0261203 commit a4d88e1
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 11 deletions.
24 changes: 24 additions & 0 deletions db/migrate/20171026152944_drop_blueprints.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
class DropBlueprints < ActiveRecord::Migration[5.0]
def up
drop_table :blueprints
remove_column :dialogs, :blueprint_id, :bigint
remove_column :service_templates, :blueprint_id, :bigint
end

def down
create_table :blueprints do |t|
t.string :name
t.string :description
t.string :status
t.string :version
t.jsonb :ui_properties

t.timestamps
end
add_index :blueprints, :name
add_index :blueprints, :status

add_column :dialogs, :blueprint_id, :bigint
add_column :service_templates, :blueprint_id, :bigint
end
end
11 changes: 0 additions & 11 deletions db/schema.yml
Original file line number Diff line number Diff line change
Expand Up @@ -157,15 +157,6 @@ blacklisted_events:
- enabled
- created_at
- updated_at
blueprints:
- id
- name
- description
- status
- version
- ui_properties
- created_at
- updated_at
bottleneck_events:
- id
- timestamp
Expand Down Expand Up @@ -1104,7 +1095,6 @@ dialogs:
- created_at
- updated_at
- label
- blueprint_id
direct_configuration_profiles_configuration_tags:
- configuration_profile_id
- configuration_tag_id
Expand Down Expand Up @@ -5918,7 +5908,6 @@ service_templates:
- service_template_catalog_id
- long_description
- tenant_id
- blueprint_id
- generic_subtype
services:
- id
Expand Down

0 comments on commit a4d88e1

Please sign in to comment.