Sha256: 281d9b274ecdb2be67520f60f510b32f7fc252461e3e31a04866df5bf446f6ee

Contents?: true

Size: 1.12 KB

Versions: 44

Compression:

Stored size: 1.12 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, :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

44 entries across 44 versions & 1 rubygems

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