Sha256: e1658db30cdb99b3a14186d1dd88217d796fc714e7f3fe4c1ad23c1356b565ec

Contents?: true

Size: 955 Bytes

Versions: 181

Compression:

Stored size: 955 Bytes

Contents

class RemoveJoinTableForRoleAndUsage < ActiveRecord::Migration[5.1]
  def change
    remove_foreign_key :katello_subscription_facet_purpose_roles, :katello_subscription_facets
    remove_foreign_key :katello_subscription_facet_purpose_roles, :katello_purpose_roles
    remove_foreign_key :katello_subscription_facet_purpose_usages, :katello_subscription_facets
    remove_foreign_key :katello_subscription_facet_purpose_usages, :katello_purpose_usages

    drop_table :katello_subscription_facet_purpose_roles
    drop_table :katello_subscription_facet_purpose_usages
    drop_table :katello_subscription_facet_purpose_addons

    drop_table :katello_purpose_roles
    drop_table :katello_purpose_usages
    drop_table :katello_purpose_addons

    add_column :katello_subscription_facets, :purpose_usage, :text
    add_column :katello_subscription_facets, :purpose_role, :text
    add_column :katello_subscription_facets, :purpose_addons, :text
  end
end

Version data entries

181 entries across 181 versions & 1 rubygems

Version Path
katello-4.4.0.2 db/migrate/20180828161400_remove_join_table_for_role_and_usage.rb
katello-4.4.0.1 db/migrate/20180828161400_remove_join_table_for_role_and_usage.rb
katello-4.3.1 db/migrate/20180828161400_remove_join_table_for_role_and_usage.rb
katello-4.4.0 db/migrate/20180828161400_remove_join_table_for_role_and_usage.rb
katello-4.4.0.rc2 db/migrate/20180828161400_remove_join_table_for_role_and_usage.rb
katello-4.4.0.rc1 db/migrate/20180828161400_remove_join_table_for_role_and_usage.rb
katello-4.2.2 db/migrate/20180828161400_remove_join_table_for_role_and_usage.rb
katello-4.3.0 db/migrate/20180828161400_remove_join_table_for_role_and_usage.rb
katello-4.3.0.rc4 db/migrate/20180828161400_remove_join_table_for_role_and_usage.rb
katello-4.3.0.rc3 db/migrate/20180828161400_remove_join_table_for_role_and_usage.rb
katello-4.3.0.rc2.1 db/migrate/20180828161400_remove_join_table_for_role_and_usage.rb
katello-4.3.0.rc2 db/migrate/20180828161400_remove_join_table_for_role_and_usage.rb
katello-4.3.0.rc1 db/migrate/20180828161400_remove_join_table_for_role_and_usage.rb
katello-4.2.1 db/migrate/20180828161400_remove_join_table_for_role_and_usage.rb
katello-4.2.0.1 db/migrate/20180828161400_remove_join_table_for_role_and_usage.rb
katello-4.1.4 db/migrate/20180828161400_remove_join_table_for_role_and_usage.rb
katello-4.0.3 db/migrate/20180828161400_remove_join_table_for_role_and_usage.rb
katello-4.2.0.1.rc3 db/migrate/20180828161400_remove_join_table_for_role_and_usage.rb
katello-3.18.5 db/migrate/20180828161400_remove_join_table_for_role_and_usage.rb
katello-4.2.0.1.rc2 db/migrate/20180828161400_remove_join_table_for_role_and_usage.rb