1
|
class ChangeContainerColumnType < ActiveRecord::Migration
|
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
|