Sha256: 3835bdc7175d30611a439787eb517f480130f1a6980c1486abd493b0886b6c57

Contents?: true

Size: 685 Bytes

Versions: 5

Compression:

Stored size: 685 Bytes

Contents

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

      t.timestamps :null => true
    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-1.3.7 db/migrate/20150616080015_create_template_input.rb
foreman_remote_execution-1.3.6 db/migrate/20150616080015_create_template_input.rb
foreman_remote_execution-1.4.1 db/migrate/20150616080015_create_template_input.rb
foreman_remote_execution-1.3.5 db/migrate/20150616080015_create_template_input.rb
foreman_remote_execution-1.3.4 db/migrate/20150616080015_create_template_input.rb