class CreateContainerNodeConditions < ActiveRecord::Migration[4.2]
  def up
    create_table :container_node_conditions do |t|
      t.belongs_to :container_node, :type => :bigint
      t.string     :name
      t.string     :status
      t.timestamp  :last_heartbeat_time
      t.timestamp  :last_transition_time
      t.string     :reason
      t.string     :message
    end
  end

  def down
    drop_table :container_node_conditions
  end
end
