Sha256: e8cd25ae77f6154bc62fd7e24d91cdd642c40db6c423bfe420a388d716aaa489

Contents?: true

Size: 1.08 KB

Versions: 10

Compression:

Stored size: 1.08 KB

Contents

class CreateContentViewHistory < ActiveRecord::Migration
  def up
    create_table 'katello_content_view_histories' do |t|
      t.references :katello_content_view_version, :null => false
      t.references :katello_environment, :null => true
      t.string :task_id, :null => true
      t.string :user, :null => false
      t.string :status, :null => false
      t.text :notes
      t.timestamps
    end

    add_index "katello_content_view_histories", ["katello_content_view_version_id"], :name => "index_cvh_cvvid"
    add_index "katello_content_view_histories", ["katello_environment_id"], :name => "index_cvh_environment_id"

    add_foreign_key "katello_content_view_histories", "katello_environments",
                        :name => "content_view_histories_cvh_environment_id", :column => "katello_environment_id"
    add_foreign_key "katello_content_view_histories", "katello_content_view_versions",
                        :name => "content_view_histories_cvh_cvv_id", :column => "katello_content_view_version_id"
  end

  def down
    drop_table 'katello_content_view_histories'
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

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