Skip to content

Commit

Permalink
Merge pull request #113 from bzwei/remove_blueprint
Browse files Browse the repository at this point in the history
Drop blueprints and blueprint_id in dialogs and service_templates
  • Loading branch information
Fryguy authored Oct 27, 2017
2 parents 3320f19 + a4d88e1 commit 3b374e6
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 @@ -1111,7 +1102,6 @@ dialogs:
- created_at
- updated_at
- label
- blueprint_id
direct_configuration_profiles_configuration_tags:
- configuration_profile_id
- configuration_tag_id
Expand Down Expand Up @@ -5928,7 +5918,6 @@ service_templates:
- service_template_catalog_id
- long_description
- tenant_id
- blueprint_id
- generic_subtype
services:
- id
Expand Down

0 comments on commit 3b374e6

Please sign in to comment.