Sha256: 8dec99df93ca1964dae6117fd9d94aa4604442500dd925eb8d9d07c1ffe68790

Contents?: true

Size: 690 Bytes

Versions: 16

Compression:

Stored size: 690 Bytes

Contents

class CreateTemplateInput < ActiveRecord::Migration[4.2]
  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

16 entries across 16 versions & 1 rubygems

Version Path
foreman_remote_execution-1.5.6 db/migrate/20150616080015_create_template_input.rb
foreman_remote_execution-1.6.3 db/migrate/20150616080015_create_template_input.rb
foreman_remote_execution-1.6.2 db/migrate/20150616080015_create_template_input.rb
foreman_remote_execution-1.5.5 db/migrate/20150616080015_create_template_input.rb
foreman_remote_execution-1.6.1 db/migrate/20150616080015_create_template_input.rb
foreman_remote_execution-1.6.0 db/migrate/20150616080015_create_template_input.rb
foreman_remote_execution-1.5.4 db/migrate/20150616080015_create_template_input.rb
foreman_remote_execution-1.5.3 db/migrate/20150616080015_create_template_input.rb
foreman_remote_execution-1.5.2 db/migrate/20150616080015_create_template_input.rb
foreman_remote_execution-1.5.1 db/migrate/20150616080015_create_template_input.rb
foreman_remote_execution-1.5.0 db/migrate/20150616080015_create_template_input.rb
foreman_remote_execution-1.4.6 db/migrate/20150616080015_create_template_input.rb
foreman_remote_execution-1.4.5 db/migrate/20150616080015_create_template_input.rb
foreman_remote_execution-1.4.4 db/migrate/20150616080015_create_template_input.rb
foreman_remote_execution-1.4.3 db/migrate/20150616080015_create_template_input.rb
foreman_remote_execution-1.4.2 db/migrate/20150616080015_create_template_input.rb