Sha256: a1694dfdf55acc7edbeea971842e8b340386213e9d48a91151b04e3809a76634

Contents?: true

Size: 360 Bytes

Versions: 195

Compression:

Stored size: 360 Bytes

Contents

class SubFacetUserIndexNotUniq < ActiveRecord::Migration[4.2]
  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

195 entries across 195 versions & 1 rubygems

Version Path
katello-4.14.2 db/migrate/20161028153131_sub_facet_user_index_not_uniq.rb
katello-4.15.0 db/migrate/20161028153131_sub_facet_user_index_not_uniq.rb
katello-4.15.0.rc2 db/migrate/20161028153131_sub_facet_user_index_not_uniq.rb
katello-4.15.0.rc1 db/migrate/20161028153131_sub_facet_user_index_not_uniq.rb
katello-4.14.1 db/migrate/20161028153131_sub_facet_user_index_not_uniq.rb
katello-4.14.0 db/migrate/20161028153131_sub_facet_user_index_not_uniq.rb
katello-4.14.0.rc3 db/migrate/20161028153131_sub_facet_user_index_not_uniq.rb
katello-4.14.0.rc2 db/migrate/20161028153131_sub_facet_user_index_not_uniq.rb
katello-4.14.0.rc1.1 db/migrate/20161028153131_sub_facet_user_index_not_uniq.rb
katello-4.14.0.rc1 db/migrate/20161028153131_sub_facet_user_index_not_uniq.rb
katello-4.13.1 db/migrate/20161028153131_sub_facet_user_index_not_uniq.rb
katello-4.13.0 db/migrate/20161028153131_sub_facet_user_index_not_uniq.rb
katello-4.12.1 db/migrate/20161028153131_sub_facet_user_index_not_uniq.rb
katello-4.13.0.rc1 db/migrate/20161028153131_sub_facet_user_index_not_uniq.rb
katello-4.12.0 db/migrate/20161028153131_sub_facet_user_index_not_uniq.rb
katello-4.12.0.rc3 db/migrate/20161028153131_sub_facet_user_index_not_uniq.rb
katello-4.12.0.rc2 db/migrate/20161028153131_sub_facet_user_index_not_uniq.rb
katello-4.12.0.rc1 db/migrate/20161028153131_sub_facet_user_index_not_uniq.rb
katello-4.11.1 db/migrate/20161028153131_sub_facet_user_index_not_uniq.rb
katello-4.11.0 db/migrate/20161028153131_sub_facet_user_index_not_uniq.rb