Sha256: 489cd58cf2a7a162df193af5fd794c71e185cf5622ca75531dc50d10dce58f4e

Contents?: true

Size: 1.18 KB

Versions: 44

Compression:

Stored size: 1.18 KB

Contents

class CreatePackageGroups < ActiveRecord::Migration
  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

44 entries across 44 versions & 1 rubygems

Version Path
katello-3.5.2 db/migrate/20150623135424_create_package_groups.rb
katello-3.5.1.1 db/migrate/20150623135424_create_package_groups.rb
katello-3.5.1 db/migrate/20150623135424_create_package_groups.rb
katello-3.5.0.1 db/migrate/20150623135424_create_package_groups.rb
katello-3.5.0 db/migrate/20150623135424_create_package_groups.rb
katello-3.5.0.rc2 db/migrate/20150623135424_create_package_groups.rb
katello-3.5.0.rc1 db/migrate/20150623135424_create_package_groups.rb
katello-3.4.5 db/migrate/20150623135424_create_package_groups.rb
katello-3.4.4 db/migrate/20150623135424_create_package_groups.rb
katello-3.4.2 db/migrate/20150623135424_create_package_groups.rb
katello-3.4.1 db/migrate/20150623135424_create_package_groups.rb
katello-3.4.0.2 db/migrate/20150623135424_create_package_groups.rb
katello-3.4.0.1 db/migrate/20150623135424_create_package_groups.rb
katello-3.3.2 db/migrate/20150623135424_create_package_groups.rb
katello-3.4.0 db/migrate/20150623135424_create_package_groups.rb
katello-3.4.0.rc2 db/migrate/20150623135424_create_package_groups.rb
katello-3.4.0.rc1 db/migrate/20150623135424_create_package_groups.rb
katello-3.3.1.1 db/migrate/20150623135424_create_package_groups.rb
katello-3.3.1 db/migrate/20150623135424_create_package_groups.rb
katello-3.3.0.1 db/migrate/20150623135424_create_package_groups.rb