-
Notifications
You must be signed in to change notification settings - Fork 125
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #79 from zakiva/drop_component_statuses
Drop Container Component Statuses
- Loading branch information
Showing
2 changed files
with
16 additions
and
8 deletions.
There are no files selected for viewing
16 changes: 16 additions & 0 deletions
16
db/migrate/20170927114802_drop_container_component_statuses.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters