Sha256: 171b9a090d31dfcde951703e7978d6cd08b1113f6895245429c83fba0c0f8d32

Contents?: true

Size: 898 Bytes

Versions: 191

Compression:

Stored size: 898 Bytes

Contents

class AddFiles < ActiveRecord::Migration[4.2]
  def change
    create_table "katello_files" do |t|
      t.timestamps
      t.string "uuid", :null => false, :limit => 255
      t.string 'name', :limit => 255
      t.string 'checksum', :limit => 255
      t.string 'path'
    end

    add_index :katello_files, :uuid, :unique => true
    add_index :katello_files, [
      :id,
      :uuid,
      :name
    ],
    :name => 'katello_files_fields_index'

    create_table "katello_repository_files" do |t|
      t.references :file, :null => false
      t.references :repository, :null => true
      t.timestamps
    end

    add_index :katello_repository_files, [:file_id, :repository_id], :unique => true

    add_foreign_key "katello_repository_files", "katello_files", :column => "file_id"
    add_foreign_key "katello_repository_files", "katello_repositories", :column => "repository_id"
  end
end

Version data entries

191 entries across 191 versions & 1 rubygems

Version Path
katello-4.14.1 db/migrate/20160808002834_add_files.rb
katello-4.14.0 db/migrate/20160808002834_add_files.rb
katello-4.14.0.rc3 db/migrate/20160808002834_add_files.rb
katello-4.14.0.rc2 db/migrate/20160808002834_add_files.rb
katello-4.14.0.rc1.1 db/migrate/20160808002834_add_files.rb
katello-4.14.0.rc1 db/migrate/20160808002834_add_files.rb
katello-4.13.1 db/migrate/20160808002834_add_files.rb
katello-4.13.0 db/migrate/20160808002834_add_files.rb
katello-4.12.1 db/migrate/20160808002834_add_files.rb
katello-4.13.0.rc1 db/migrate/20160808002834_add_files.rb
katello-4.12.0 db/migrate/20160808002834_add_files.rb
katello-4.12.0.rc3 db/migrate/20160808002834_add_files.rb
katello-4.12.0.rc2 db/migrate/20160808002834_add_files.rb
katello-4.12.0.rc1 db/migrate/20160808002834_add_files.rb
katello-4.11.1 db/migrate/20160808002834_add_files.rb
katello-4.11.0 db/migrate/20160808002834_add_files.rb
katello-4.11.0.rc2 db/migrate/20160808002834_add_files.rb
katello-4.11.0.rc1 db/migrate/20160808002834_add_files.rb
katello-4.10.0 db/migrate/20160808002834_add_files.rb
katello-4.9.2 db/migrate/20160808002834_add_files.rb