Sha256: 27c57960082ef166999857977f586094e7cde2a29c2570cb984ace0648f49d82
Contents?: true
Size: 564 Bytes
Versions: 21
Compression:
Stored size: 564 Bytes
Contents
class KatelloPoolOrganizationIdNotNullable < ActiveRecord::Migration[6.0] def up ::Katello::Pool.where(organization_id: nil).destroy_all change_column :katello_pools, :organization_id, :integer, null: false change_column :katello_pools, :subscription_id, :integer, null: false add_index :katello_pools, :organization_id end def down change_column :katello_pools, :organization_id, :integer, null: true change_column :katello_pools, :subscription_id, :integer, null: true remove_index :katello_pools, :organization_id end end
Version data entries
21 entries across 21 versions & 1 rubygems