Sha256: c8f9f07db6b40086f8d7c04071da71dde05e5441ee3d137c111cfa84b21bd009

Contents?: true

Size: 512 Bytes

Versions: 18

Compression:

Stored size: 512 Bytes

Contents

# frozen_string_literal: true

# Adding app_definitions db table
class CreateAppInstances < ActiveRecord::Migration[5.2]
  def up
    create_table :app_instances do |t|
      t.string :name, :default => '', :null => false, :limit => 255, :unique => true
      t.column :app_definition_id, :integer, :null => false
      t.text :description
      t.text :hosts
      t.timestamps :null => true
    end
    add_foreign_key :app_instances, :app_definitions
  end

  def down
    drop_table :app_instances
  end
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
foreman_acd-0.11.0 db/migrate/20190625140305_create_app_instances.rb
foreman_acd-0.10.0 db/migrate/20190625140305_create_app_instances.rb
foreman_acd-0.9.7 db/migrate/20190625140305_create_app_instances.rb
foreman_acd-0.9.5 db/migrate/20190625140305_create_app_instances.rb
foreman_acd-0.9.4 db/migrate/20190625140305_create_app_instances.rb
foreman_acd-0.9.3 db/migrate/20190625140305_create_app_instances.rb
foreman_acd-0.9.2.3 db/migrate/20190625140305_create_app_instances.rb
foreman_acd-0.9.2.2 db/migrate/20190625140305_create_app_instances.rb
foreman_acd-0.9.2.1 db/migrate/20190625140305_create_app_instances.rb
foreman_acd-0.9.2 db/migrate/20190625140305_create_app_instances.rb
foreman_acd-0.9.1 db/migrate/20190625140305_create_app_instances.rb
foreman_acd-0.9.0 db/migrate/20190625140305_create_app_instances.rb
foreman_acd-0.7.0 db/migrate/20190625140305_create_app_instances.rb
foreman_acd-0.6.0 db/migrate/20190625140305_create_app_instances.rb
foreman_acd-0.5.0 db/migrate/20190625140305_create_app_instances.rb
foreman_acd-0.4.0 db/migrate/20190625140305_create_app_instances.rb
foreman_acd-0.3.0 db/migrate/20190625140305_create_app_instances.rb
foreman_acd-0.2.1 db/migrate/20190625140305_create_app_instances.rb