Sha256: eac314a26743a8b8e7d9b922b2075196f2daa6a79aaeed42b8aa5422027908b1

Contents?: true

Size: 547 Bytes

Versions: 4

Compression:

Stored size: 547 Bytes

Contents

class ChangeContainerColumnType < ActiveRecord::Migration[4.2]
  def up
    change_column :containers, :cpu_shares, :integer
    change_column :docker_container_wizard_states_configurations, :cpu_shares, :integer
    change_column :docker_container_wizard_states_configurations, :cpu_set, :string
  end

  def down
    change_column :containers, :cpu_shares, :float
    change_column :docker_container_wizard_states_configurations, :cpu_shares, :float
    change_column :docker_container_wizard_states_configurations, :cpu_set, :integer
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
foreman_docker-5.0.0 db/migrate/20150814205620_change_container_column_type.rb
foreman_docker-4.1.1 db/migrate/20150814205620_change_container_column_type.rb
foreman_docker-4.1.0 db/migrate/20150814205620_change_container_column_type.rb
foreman_docker-4.0.0 db/migrate/20150814205620_change_container_column_type.rb