Sha256: e5f986db1d32bbc49d3180fccf3e5743608d4ddb616cdbfc87f054c33b4832f4

Contents?: true

Size: 355 Bytes

Versions: 27

Compression:

Stored size: 355 Bytes

Contents

class SubFacetUserIndexNotUniq < ActiveRecord::Migration
  def up
    remove_index :katello_subscription_facets, [:user_id]
    add_index :katello_subscription_facets, [:user_id], :unique => false
  end

  def down
    remove_index :katello_subscription_facets, [:user_id]
    add_index :katello_subscription_facets, [:user_id], :unique => true
  end
end

Version data entries

27 entries across 27 versions & 1 rubygems

Version Path
katello-3.3.0 db/migrate/20161028153131_sub_facet_user_index_not_uniq.rb
katello-3.3.0.rc2 db/migrate/20161028153131_sub_facet_user_index_not_uniq.rb
katello-3.3.0.rc1.1 db/migrate/20161028153131_sub_facet_user_index_not_uniq.rb
katello-3.3.0.rc1 db/migrate/20161028153131_sub_facet_user_index_not_uniq.rb
katello-3.2.1.1 db/migrate/20161028153131_sub_facet_user_index_not_uniq.rb
katello-3.2.1 db/migrate/20161028153131_sub_facet_user_index_not_uniq.rb
katello-3.2.0 db/migrate/20161028153131_sub_facet_user_index_not_uniq.rb