Sha256: 5cf513a55b3d7810006483c4089304498a004e4014e32992d512e4bd4a0c3e4a
Contents?: true
Size: 663 Bytes
Versions: 14
Compression:
Stored size: 663 Bytes
Contents
# frozen_string_literal: true # Adding acd_foreman_hosts db table class CreateForemanHosts < ActiveRecord::Migration[6.0] def up create_table :foreman_hosts do |t| t.string :hostname, :default => '', :null => false, :limit => 255, :unique => true t.column :app_instance_id, :integer, :null => false t.column :host_id, :integer t.string :service t.string :description t.text :foremanParameters t.text :ansibleParameters t.timestamps :null => false end add_foreign_key :foreman_hosts, :app_instances add_foreign_key :foreman_hosts, :hosts end def down drop_table :foreman_hosts end end
Version data entries
14 entries across 14 versions & 1 rubygems