Project

General

Profile

Download (357 Bytes) Statistics
| Branch: | Tag: | Revision:

foreman_docker / db / migrate / 20180105090316_remove_docker_search_permission.rb @ 8ffd2fd6

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

    
8
  def down
9
    Permission.where(
10
      :name => "search_repository_image_search",
11
      :resource_type => 'DockerRegistry').destroy_all
12
  end
13
end