Sha256: c54948041a2b21eecf5cdf7a543bec7eed322511e333c1bb9593e1536bdab952

Contents?: true

Size: 1.12 KB

Versions: 195

Compression:

Stored size: 1.12 KB

Contents

class CreateContentViewHistory < ActiveRecord::Migration[4.2]
  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, :limit => 255
      t.string :user, :null => false, :limit => 255
      t.string :status, :null => false, :limit => 255
      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

195 entries across 195 versions & 1 rubygems

Version Path
katello-4.14.2 db/migrate/20140217160132_create_content_view_history.rb
katello-4.15.0 db/migrate/20140217160132_create_content_view_history.rb
katello-4.15.0.rc2 db/migrate/20140217160132_create_content_view_history.rb
katello-4.15.0.rc1 db/migrate/20140217160132_create_content_view_history.rb
katello-4.14.1 db/migrate/20140217160132_create_content_view_history.rb
katello-4.14.0 db/migrate/20140217160132_create_content_view_history.rb
katello-4.14.0.rc3 db/migrate/20140217160132_create_content_view_history.rb
katello-4.14.0.rc2 db/migrate/20140217160132_create_content_view_history.rb
katello-4.14.0.rc1.1 db/migrate/20140217160132_create_content_view_history.rb
katello-4.14.0.rc1 db/migrate/20140217160132_create_content_view_history.rb
katello-4.13.1 db/migrate/20140217160132_create_content_view_history.rb
katello-4.13.0 db/migrate/20140217160132_create_content_view_history.rb
katello-4.12.1 db/migrate/20140217160132_create_content_view_history.rb
katello-4.13.0.rc1 db/migrate/20140217160132_create_content_view_history.rb
katello-4.12.0 db/migrate/20140217160132_create_content_view_history.rb
katello-4.12.0.rc3 db/migrate/20140217160132_create_content_view_history.rb
katello-4.12.0.rc2 db/migrate/20140217160132_create_content_view_history.rb
katello-4.12.0.rc1 db/migrate/20140217160132_create_content_view_history.rb
katello-4.11.1 db/migrate/20140217160132_create_content_view_history.rb
katello-4.11.0 db/migrate/20140217160132_create_content_view_history.rb