Sha256: 524084761a5150b789d2cd67ad8370d7071644bfa1906bf0009dbddb9308dde4

Contents?: true

Size: 893 Bytes

Versions: 31

Compression:

Stored size: 893 Bytes

Contents

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

31 entries across 31 versions & 1 rubygems

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