Sha256: b4363416e75994936eedbc238d6581ca4a6b0e37ae9c4d0d218b5a2aa3a009ea

Contents?: true

Size: 1.19 KB

Versions: 195

Compression:

Stored size: 1.19 KB

Contents

class CreatePackageGroups < ActiveRecord::Migration[4.2]
  def change
    create_table "katello_package_groups" do |t|
      t.string "name", :limit => 255
      t.string "uuid", :null => false, :limit => 255
      t.string "description", :limit => 255
      t.timestamps
    end
    add_index :katello_package_groups, :uuid, :unique => true

    create_table "katello_repository_package_groups" do |t|
      t.references :package_group, :null => false
      t.references :repository, :null => true
      t.timestamps
    end
    add_index "katello_repository_package_groups", [:package_group_id, :repository_id], :unique => true,
              :name => "index_katello_repository_package_groups_on_pgid_repoid"

    add_foreign_key "katello_repository_package_groups", "katello_package_groups",
                    :name => "katello_repository_package_groups_package_groups_id_fk", :column => "package_group_id"
    add_foreign_key "katello_repository_package_groups", "katello_repositories",
                    :name => "katello_repository_package_groups_repo_id_fk", :column => "repository_id"
  end

  def down
    drop_table "katello_package_groups"
    drop_table "katello_repository_package_groups"
  end
end

Version data entries

195 entries across 195 versions & 1 rubygems

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