Sha256: 5e2e8d4b3233b3a35fc9d632c4a9c1346d19ce0578ec139a8d3cb1683bdd06f5

Contents?: true

Size: 1.18 KB

Versions: 177

Compression:

Stored size: 1.18 KB

Contents

class AddApplicableModules < ActiveRecord::Migration[5.2]
  def change
    create_table "katello_content_facet_applicable_module_streams" do |t|
      t.references 'content_facet', :null => false, :index => { :name => :katello_cfams_cf_idx }
      t.references 'module_stream', :null => false, :index => { :name => :katello_cfams_ms_idx }
    end

    add_foreign_key :katello_content_facet_applicable_module_streams,
                    :katello_module_streams,
                    column: :module_stream_id,
                    name: :katello_cfams_mod_stream_id_fk

    add_foreign_key :katello_content_facet_applicable_module_streams,
                    :katello_content_facets,
                    column: :content_facet_id,
                    name: :katello_cfams_cf_fk

    add_index "katello_content_facet_applicable_module_streams", ["module_stream_id", "content_facet_id"],
              :name => "katello_content_facet_module_stream_rid_cfid", :unique => true

    add_column :katello_content_facets, :applicable_module_stream_count, :integer, :null => false, :default => 0
    add_column :katello_content_facets, :upgradable_module_stream_count, :integer, :null => false, :default => 0
  end
end

Version data entries

177 entries across 177 versions & 1 rubygems

Version Path
katello-4.11.0.rc2 db/migrate/20181027014323_add_applicable_modules.rb
katello-4.11.0.rc1 db/migrate/20181027014323_add_applicable_modules.rb
katello-4.10.0 db/migrate/20181027014323_add_applicable_modules.rb
katello-4.9.2 db/migrate/20181027014323_add_applicable_modules.rb
katello-4.10.0.rc2 db/migrate/20181027014323_add_applicable_modules.rb
katello-4.10.0.rc1 db/migrate/20181027014323_add_applicable_modules.rb
katello-4.8.4 db/migrate/20181027014323_add_applicable_modules.rb
katello-4.9.1 db/migrate/20181027014323_add_applicable_modules.rb
katello-4.8.3 db/migrate/20181027014323_add_applicable_modules.rb
katello-4.9.0 db/migrate/20181027014323_add_applicable_modules.rb
katello-4.7.6 db/migrate/20181027014323_add_applicable_modules.rb
katello-4.8.2 db/migrate/20181027014323_add_applicable_modules.rb
katello-4.9.0.rc2 db/migrate/20181027014323_add_applicable_modules.rb
katello-4.9.0.rc1 db/migrate/20181027014323_add_applicable_modules.rb
katello-4.8.1 db/migrate/20181027014323_add_applicable_modules.rb
katello-4.7.5 db/migrate/20181027014323_add_applicable_modules.rb
katello-4.8.0 db/migrate/20181027014323_add_applicable_modules.rb
katello-4.8.0.rc2 db/migrate/20181027014323_add_applicable_modules.rb
katello-4.7.4 db/migrate/20181027014323_add_applicable_modules.rb
katello-4.8.0.rc1 db/migrate/20181027014323_add_applicable_modules.rb