Sha256: 97ece923bf6570cdc3d96947c4d5dcc61077b41e26c19c458cc347ce64254b0e

Contents?: true

Size: 1.08 KB

Versions: 160

Compression:

Stored size: 1.08 KB

Contents

class CreateKatelloAnsibleCollections < ActiveRecord::Migration[5.2]
  def change
    create_table :katello_ansible_collections do |t|
      t.string :pulp_id, :null => false, :limit => 255
      t.string :checksum
      t.string :name
      t.string :namespace
      t.string :version
      t.timestamps
    end

    add_index :katello_ansible_collections, :pulp_id, :unique => true, :name => 'katello_ansible_collections_pulp_id_index'

    create_table "katello_repository_ansible_collections" do |t|
      t.references :ansible_collection, :null => false, index: { :name => 'index_katello_repo_ansible_collections' }
      t.references :repository, :null => false
      t.timestamps
    end

    add_index :katello_repository_ansible_collections, [:ansible_collection_id, :repository_id], :unique => true, :name => 'repository_ansible_collection_ids'

    add_foreign_key "katello_repository_ansible_collections", "katello_ansible_collections", :column => "ansible_collection_id"
    add_foreign_key "katello_repository_ansible_collections", "katello_repositories", :column => "repository_id"
  end
end

Version data entries

160 entries across 160 versions & 1 rubygems

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