Sha256: 47f979dbfa6ce20a9f642986914b3808cca55ac72f7c3431ef1ae752e872dbae
Contents?: true
Size: 544 Bytes
Versions: 54
Compression:
Stored size: 544 Bytes
Contents
class AddOrganizationIdToPool < ActiveRecord::Migration[5.1] def up add_column :katello_pools, :organization_id, :integer add_foreign_key 'katello_pools', 'taxonomies', :name => 'katello_pools_organization_id', :column => 'organization_id' ::Katello::Pool.reset_column_information ::Katello::Pool.find_each do |pool| pool.update_attributes(:organization_id => pool.subscription.organization_id) if pool.subscription end end def down remove_column :katello_pools, :organization_id end end
Version data entries
54 entries across 54 versions & 1 rubygems