Project

General

Profile

Download (547 Bytes) Statistics
| Branch: | Tag: | Revision:

foreman_docker / db / migrate / 20150814205620_change_container_column_type.rb @ fb471374

1
class ChangeContainerColumnType < ActiveRecord::Migration[4.2]
2
  def up
3
    change_column :containers, :cpu_shares, :integer
4
    change_column :docker_container_wizard_states_configurations, :cpu_shares, :integer
5
    change_column :docker_container_wizard_states_configurations, :cpu_set, :string
6
  end
7

    
8
  def down
9
    change_column :containers, :cpu_shares, :float
10
    change_column :docker_container_wizard_states_configurations, :cpu_shares, :float
11
    change_column :docker_container_wizard_states_configurations, :cpu_set, :integer
12
  end
13
end