Sha256: 470df6100ac5b21aa4d93dd76a65120007c6ec85dfb9f9b796d5f4c0b3a217c9

Contents?: true

Size: 382 Bytes

Versions: 54

Compression:

Stored size: 382 Bytes

Contents

class ContentViewVersionAddMinor < ActiveRecord::Migration
  def up
    add_column :katello_content_view_versions, :minor, :integer, :null => false, :default => 0
    rename_column :katello_content_view_versions, :version, :major
  end

  def down
    rename_column :katello_content_view_versions, :major, :version
    remove_column :katello_content_view_versions, :minor
  end
end

Version data entries

54 entries across 54 versions & 1 rubygems

Version Path
katello-2.4.3 db/migrate/20141124182205_content_view_version_add_minor.rb
katello-3.0.0.rc7 db/migrate/20141124182205_content_view_version_add_minor.rb
katello-3.0.0.rc5 db/migrate/20141124182205_content_view_version_add_minor.rb
katello-2.4.2 db/migrate/20141124182205_content_view_version_add_minor.rb
katello-3.0.0.rc4 db/migrate/20141124182205_content_view_version_add_minor.rb
katello-3.0.0.rc3 db/migrate/20141124182205_content_view_version_add_minor.rb
katello-3.0.0.rc2 db/migrate/20141124182205_content_view_version_add_minor.rb
katello-3.0.0.rc1 db/migrate/20141124182205_content_view_version_add_minor.rb
katello-2.4.1 db/migrate/20141124182205_content_view_version_add_minor.rb
katello-2.4.0 db/migrate/20141124182205_content_view_version_add_minor.rb
katello-2.4.0.rc3 db/migrate/20141124182205_content_view_version_add_minor.rb
katello-2.4.0.rc2 db/migrate/20141124182205_content_view_version_add_minor.rb
katello-2.4.0.rc1 db/migrate/20141124182205_content_view_version_add_minor.rb
katello-2.2.2 db/migrate/20141124182205_content_view_version_add_minor.rb