Sha256: 788d51bd0a8546f3371d6be059f258e1b8eef68cbc9bbfe348952708b5dda578

Contents?: true

Size: 357 Bytes

Versions: 3

Compression:

Stored size: 357 Bytes

Contents

class RemoveDockerSearchPermission < ActiveRecord::Migration[4.2]
  def up
    Permission.where(
      :name => "search_repository_image_search",
      :resource_type => 'Docker/ImageSearch').destroy_all
  end

  def down
    Permission.where(
      :name => "search_repository_image_search",
      :resource_type => 'DockerRegistry').destroy_all
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
foreman_docker-5.0.0 db/migrate/20180105090316_remove_docker_search_permission.rb
foreman_docker-4.1.1 db/migrate/20180105090316_remove_docker_search_permission.rb
foreman_docker-4.1.0 db/migrate/20180105090316_remove_docker_search_permission.rb