Sha256: 887d954176461aedeb32737868ba7425199f4e25c81436cb257b92223342a2e5

Contents?: true

Size: 1.28 KB

Versions: 4

Compression:

Stored size: 1.28 KB

Contents

class CreateWizardStates < ActiveRecord::Migration[4.2]
  # rubocop:disable Metrics/MethodLength
  def change
    create_table :docker_container_wizard_states, &:timestamps

    create_table :docker_container_wizard_states_preliminaries do |t|
      t.integer :compute_resource_id, :null => false
      t.references :docker_container_wizard_state, :null => false
      t.timestamps
    end

    create_table :docker_container_wizard_states_images do |t|
      t.integer :registry_id
      t.string :repository_name, :null => false
      t.string :tag, :null => false
      t.references :docker_container_wizard_state, :null => false
      t.timestamps
    end

    create_table :docker_container_wizard_states_configurations do |t|
      t.string :name
      t.string :command
      t.string :entrypoint
      t.integer :cpu_set
      t.float :cpu_shares
      t.string :memory
      t.references :docker_container_wizard_state, :null => false
      t.timestamps
    end

    create_table :docker_container_wizard_states_environments do |t|
      t.boolean :tty
      t.boolean :attach_stdin, :default => true
      t.boolean :attach_stdout, :default => true
      t.boolean :attach_stderr, :default => true
      t.references :docker_container_wizard_state, :null => false
      t.timestamps
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
foreman_docker-5.0.0 db/migrate/20141222113313_create_wizard_states.rb
foreman_docker-4.1.1 db/migrate/20141222113313_create_wizard_states.rb
foreman_docker-4.1.0 db/migrate/20141222113313_create_wizard_states.rb
foreman_docker-4.0.0 db/migrate/20141222113313_create_wizard_states.rb