Sha256: cce992bb030ac5b9167708050561f5984686a3bb7d8076fadae36cae4c69bdb8

Contents?: true

Size: 770 Bytes

Versions: 10

Compression:

Stored size: 770 Bytes

Contents

class CreateContentViewPuppetModules < ActiveRecord::Migration
  def change
    create_table :katello_content_view_puppet_modules do |t|
      t.references :content_view
      t.string :name
      t.string :author
      t.string :uuid

      t.timestamps
    end

    add_index :katello_content_view_puppet_modules, :content_view_id
    add_index :katello_content_view_puppet_modules, [:name, :content_view_id], :unique => true, :name => :katello_cv_puppet_modules_name
    add_index :katello_content_view_puppet_modules, [:name, :author, :content_view_id], :unique => true, :name => :katello_cv_puppet_modules_name_author
    add_index :katello_content_view_puppet_modules, [:uuid, :content_view_id], :unique => true, :name => :katello_cv_puppet_modules_uuid
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
katello-2.4.5 db/migrate/20140206200439_create_content_view_puppet_modules.rb
katello-2.4.4 db/migrate/20140206200439_create_content_view_puppet_modules.rb
katello-2.4.3 db/migrate/20140206200439_create_content_view_puppet_modules.rb
katello-2.4.2 db/migrate/20140206200439_create_content_view_puppet_modules.rb
katello-2.4.1 db/migrate/20140206200439_create_content_view_puppet_modules.rb
katello-2.4.0 db/migrate/20140206200439_create_content_view_puppet_modules.rb
katello-2.4.0.rc3 db/migrate/20140206200439_create_content_view_puppet_modules.rb
katello-2.4.0.rc2 db/migrate/20140206200439_create_content_view_puppet_modules.rb
katello-2.4.0.rc1 db/migrate/20140206200439_create_content_view_puppet_modules.rb
katello-2.2.2 db/migrate/20140206200439_create_content_view_puppet_modules.rb