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.11.0.rc2 db/migrate/20180828161400_remove_join_table_for_role_and_usage.rb
katello-4.11.0.rc1 db/migrate/20180828161400_remove_join_table_for_role_and_usage.rb
katello-4.10.0 db/migrate/20180828161400_remove_join_table_for_role_and_usage.rb
katello-4.9.2 db/migrate/20180828161400_remove_join_table_for_role_and_usage.rb
katello-4.10.0.rc2 db/migrate/20180828161400_remove_join_table_for_role_and_usage.rb
katello-4.10.0.rc1 db/migrate/20180828161400_remove_join_table_for_role_and_usage.rb
katello-4.8.4 db/migrate/20180828161400_remove_join_table_for_role_and_usage.rb
katello-4.9.1 db/migrate/20180828161400_remove_join_table_for_role_and_usage.rb
katello-4.8.3 db/migrate/20180828161400_remove_join_table_for_role_and_usage.rb
katello-4.9.0 db/migrate/20180828161400_remove_join_table_for_role_and_usage.rb
katello-4.7.6 db/migrate/20180828161400_remove_join_table_for_role_and_usage.rb
katello-4.8.2 db/migrate/20180828161400_remove_join_table_for_role_and_usage.rb
katello-4.9.0.rc2 db/migrate/20180828161400_remove_join_table_for_role_and_usage.rb
katello-4.9.0.rc1 db/migrate/20180828161400_remove_join_table_for_role_and_usage.rb
katello-4.8.1 db/migrate/20180828161400_remove_join_table_for_role_and_usage.rb
katello-4.7.5 db/migrate/20180828161400_remove_join_table_for_role_and_usage.rb
katello-4.8.0 db/migrate/20180828161400_remove_join_table_for_role_and_usage.rb
katello-4.8.0.rc2 db/migrate/20180828161400_remove_join_table_for_role_and_usage.rb
katello-4.7.4 db/migrate/20180828161400_remove_join_table_for_role_and_usage.rb
katello-4.8.0.rc1 db/migrate/20180828161400_remove_join_table_for_role_and_usage.rb