Sha256: da75329dd7ed82eecf6a6784e1a8fd5131d5bb4144446b520fe81a646e65a30b

Contents?: true

Size: 349 Bytes

Versions: 7

Compression:

Stored size: 349 Bytes

Contents

class AddMirrorOnSyncToRepositories < ActiveRecord::Migration
  class RepositoryMirrorOnSync < ApplicationRecord
    self.table_name = "katello_repositories"
  end
  def change
    add_column :katello_repositories, :mirror_on_sync, :boolean, :default => true, :null => false
    RepositoryMirrorOnSync.update_all(:mirror_on_sync => false)
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
katello-3.5.2 db/migrate/20160114200145_add_mirror_on_sync_to_repositories.rb
katello-3.5.1.1 db/migrate/20160114200145_add_mirror_on_sync_to_repositories.rb
katello-3.5.1 db/migrate/20160114200145_add_mirror_on_sync_to_repositories.rb
katello-3.5.0.1 db/migrate/20160114200145_add_mirror_on_sync_to_repositories.rb
katello-3.5.0 db/migrate/20160114200145_add_mirror_on_sync_to_repositories.rb
katello-3.5.0.rc2 db/migrate/20160114200145_add_mirror_on_sync_to_repositories.rb
katello-3.5.0.rc1 db/migrate/20160114200145_add_mirror_on_sync_to_repositories.rb