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-4.14.2 db/migrate/20141001170628_add_system_repository.rb
katello-4.15.0 db/migrate/20141001170628_add_system_repository.rb
katello-4.15.0.rc2 db/migrate/20141001170628_add_system_repository.rb
katello-4.15.0.rc1 db/migrate/20141001170628_add_system_repository.rb
katello-4.14.1 db/migrate/20141001170628_add_system_repository.rb
katello-4.14.0 db/migrate/20141001170628_add_system_repository.rb
katello-4.14.0.rc3 db/migrate/20141001170628_add_system_repository.rb
katello-4.14.0.rc2 db/migrate/20141001170628_add_system_repository.rb
katello-4.14.0.rc1.1 db/migrate/20141001170628_add_system_repository.rb
katello-4.14.0.rc1 db/migrate/20141001170628_add_system_repository.rb
katello-4.13.1 db/migrate/20141001170628_add_system_repository.rb
katello-4.13.0 db/migrate/20141001170628_add_system_repository.rb
katello-4.12.1 db/migrate/20141001170628_add_system_repository.rb
katello-4.13.0.rc1 db/migrate/20141001170628_add_system_repository.rb
katello-4.12.0 db/migrate/20141001170628_add_system_repository.rb
katello-4.12.0.rc3 db/migrate/20141001170628_add_system_repository.rb
katello-4.12.0.rc2 db/migrate/20141001170628_add_system_repository.rb
katello-4.12.0.rc1 db/migrate/20141001170628_add_system_repository.rb
katello-4.11.1 db/migrate/20141001170628_add_system_repository.rb
katello-4.11.0 db/migrate/20141001170628_add_system_repository.rb