Sha256: 495fa057913a74a1a419fce2f3e063f59f4360673310089c3d23b087aeed5d5e

Contents?: true

Size: 842 Bytes

Versions: 195

Compression:

Stored size: 842 Bytes

Contents

class AddSystemRepository < ActiveRecord::Migration[4.2]
  def up
    create_table "katello_system_repositories" do |t|
      t.references :system, :null => false
      t.references :repository, :null => true
    end

    add_index :katello_system_repositories, [:system_id, :repository_id], :unique => true,
                                                                          :name => :katello_system_repositories_sid_rid

    add_foreign_key "katello_system_repositories", "katello_systems",
                    :name => "katello_system_repositories_system_id_fk", :column => "system_id"
    add_foreign_key "katello_system_repositories", "katello_repositories",
                    :name => "katello_system_repositories_repo_id_fk", :column => "repository_id"
  end

  def down
    drop_table "katello_system_repositories"
  end
end

Version data entries

195 entries across 195 versions & 1 rubygems

Version Path
katello-3.12.2 db/migrate/20141001170628_add_system_repository.rb
katello-3.13.0.rc1 db/migrate/20141001170628_add_system_repository.rb
katello-3.12.1 db/migrate/20141001170628_add_system_repository.rb
katello-3.11.2 db/migrate/20141001170628_add_system_repository.rb
katello-3.10.2 db/migrate/20141001170628_add_system_repository.rb
katello-3.12.0 db/migrate/20141001170628_add_system_repository.rb
katello-3.12.0.rc2 db/migrate/20141001170628_add_system_repository.rb
katello-3.10.1.1 db/migrate/20141001170628_add_system_repository.rb
katello-3.12.0.rc1 db/migrate/20141001170628_add_system_repository.rb
katello-3.10.1 db/migrate/20141001170628_add_system_repository.rb
katello-3.11.1 db/migrate/20141001170628_add_system_repository.rb
katello-3.11.0 db/migrate/20141001170628_add_system_repository.rb
katello-3.11.0.rc2 db/migrate/20141001170628_add_system_repository.rb
katello-3.11.0.rc1 db/migrate/20141001170628_add_system_repository.rb
katello-3.10.0 db/migrate/20141001170628_add_system_repository.rb
katello-3.10.0.rc1.1 db/migrate/20141001170628_add_system_repository.rb
katello-3.9.1 db/migrate/20141001170628_add_system_repository.rb
katello-3.10.0.rc1 db/migrate/20141001170628_add_system_repository.rb
katello-3.9.0 db/migrate/20141001170628_add_system_repository.rb
katello-3.8.1 db/migrate/20141001170628_add_system_repository.rb