Sha256: bc0001e8503f22719bc5068d6fab9d71bcb0b96593fb6d85b66b4c5cf58bacc7
Contents?: true
Size: 666 Bytes
Versions: 35
Compression:
Stored size: 666 Bytes
Contents
class CreateEnvironmentClasses < ActiveRecord::Migration[5.0] class EnvironmentClass < ApplicationRecord; end def up rename_table :environments_puppetclasses, :environment_classes add_column :environment_classes, :puppetclass_lookup_key_id, :integer add_foreign_key :environment_classes, :lookup_keys, column: :puppetclass_lookup_key_id, name: 'environment_classes_lookup_key_id_fk' end def down remove_foreign_key :environment_classes, :lookup_keys, column: :puppetclass_lookup_key_id remove_column :environment_classes, :puppetclass_lookup_key_id, :integer rename_table :environment_classes, :environments_puppetclasses end end
Version data entries
35 entries across 35 versions & 1 rubygems