Skip to content

Commit

Permalink
Merge pull request #14042 from lenovo/migration_phys_state
Browse files Browse the repository at this point in the history
Migration: Add health_state and power_state columns to physical server
  • Loading branch information
Fryguy authored Mar 10, 2017
2 parents aeb3b0a + 686c805 commit 834b4a1
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
class AddHealthStatePropertyToPhysicalServer < ActiveRecord::Migration[5.0]
def change
add_column :physical_servers, :health_state, :string
end
end
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
class AddPowerStatePropertyToPhysicalServer < ActiveRecord::Migration[5.0]
def change
add_column :physical_servers, :power_state, :string
end
end
2 changes: 2 additions & 0 deletions db/schema.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6133,6 +6133,8 @@ physical_servers:
- ems_ref
- created_at
- updated_at
- health_state
- power_state
pictures:
- id
- resource_id
Expand Down

0 comments on commit 834b4a1

Please sign in to comment.