Sha256: 8cf6765afb2dd031af740a927f755d8313d2e2abed62b1194053f0393453dbd7

Contents?: true

Size: 581 Bytes

Versions: 5

Compression:

Stored size: 581 Bytes

Contents

class CreateTemplateInput < ActiveRecord::Migration
  def change
    create_table :template_inputs do |t|
      t.string :name, :null => false
      t.boolean :required, :null => false, :default => false
      t.string :input_type, :null => false
      t.string :fact_name
      t.string :variable_name
      t.string :puppet_class_name
      t.string :puppet_parameter_name
      t.text :description
      t.integer :template_id

      t.timestamps
    end

    add_foreign_key :template_inputs, :templates, :name => 'templates_template_id_fk', :column => 'template_id'
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
foreman_remote_execution-0.3.1 db/migrate/20150616080015_create_template_input.rb
foreman_remote_execution-0.3.0 db/migrate/20150616080015_create_template_input.rb
foreman_remote_execution-0.2.3 db/migrate/20150616080015_create_template_input.rb
foreman_remote_execution-0.2.2 db/migrate/20150616080015_create_template_input.rb
foreman_remote_execution-0.2.1 db/migrate/20150616080015_create_template_input.rb