Sha256: e1d3fe7e3a9f0edbe0be32d462a90ffd91f2624303b926dd5aca6a6fda14463b

Contents?: true

Size: 581 Bytes

Versions: 12

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

12 entries across 12 versions & 1 rubygems

Version Path
foreman_remote_execution-0.1.2 db/migrate/20150616080015_create_template_input.rb
foreman_remote_execution-0.1.1 db/migrate/20150616080015_create_template_input.rb
foreman_remote_execution-0.1.0 db/migrate/20150616080015_create_template_input.rb
foreman_remote_execution-0.0.10 db/migrate/20150616080015_create_template_input.rb
foreman_remote_execution-0.0.8 db/migrate/20150616080015_create_template_input.rb
foreman_remote_execution-0.0.7 db/migrate/20150616080015_create_template_input.rb
foreman_remote_execution-0.0.6 db/migrate/20150616080015_create_template_input.rb
foreman_remote_execution-0.0.5 db/migrate/20150616080015_create_template_input.rb
foreman_remote_execution-0.0.4 db/migrate/20150616080015_create_template_input.rb
foreman_remote_execution-0.0.3 db/migrate/20150616080015_create_template_input.rb
foreman_remote_execution-0.0.2 db/migrate/20150616080015_create_template_input.rb
foreman_remote_execution-0.0.1 db/migrate/20150616080015_create_template_input.rb