Sha256: 79af9a2f7fc5c70a643577dcebe73ed2d203f4ff5f1761b42603933c10ae5962

Contents?: true

Size: 739 Bytes

Versions: 177

Compression:

Stored size: 739 Bytes

Contents

# This file should contain all the record creation needed to seed the database with its default values.
# The data can then be loaded with the rake db:seed (or created alongside the db with db:setup).
#
# !!! PLEASE KEEP THIS SCRIPT IDEMPOTENT !!!
#

User.as_anonymous_admin do
  Bookmark.without_auditing do
    bookmarks = [
      {:name => "Without a Tag", :query => 'not has tag', :controller => "katello_docker_manifests"}
    ]

    bookmarks.each do |input|
      next if SeedHelper.audit_modified? Bookmark, input[:name], :controller => input[:controller]
      b = Bookmark.find_or_create_by({ :public => true }.merge(input))
      fail "Unable to create bookmark: #{format_errors b}" if b.nil? || b.errors.any?
    end
  end
end

Version data entries

177 entries across 177 versions & 1 rubygems

Version Path
katello-4.6.2 db/seeds.d/111-container-image-bookmarks.rb
katello-4.7.0 db/seeds.d/111-container-image-bookmarks.rb
katello-4.6.1 db/seeds.d/111-container-image-bookmarks.rb
katello-4.7.0.rc2 db/seeds.d/111-container-image-bookmarks.rb
katello-4.7.0.rc1 db/seeds.d/111-container-image-bookmarks.rb
katello-4.4.2.2 db/seeds.d/111-container-image-bookmarks.rb
katello-4.4.2.1 db/seeds.d/111-container-image-bookmarks.rb
katello-4.4.2 db/seeds.d/111-container-image-bookmarks.rb
katello-4.5.1 db/seeds.d/111-container-image-bookmarks.rb
katello-4.6.0 db/seeds.d/111-container-image-bookmarks.rb
katello-4.6.0.rc2 db/seeds.d/111-container-image-bookmarks.rb
katello-4.6.0.rc1 db/seeds.d/111-container-image-bookmarks.rb
katello-4.5.0 db/seeds.d/111-container-image-bookmarks.rb
katello-4.5.0.rc2 db/seeds.d/111-container-image-bookmarks.rb
katello-4.4.1 db/seeds.d/111-container-image-bookmarks.rb
katello-4.5.0.rc1 db/seeds.d/111-container-image-bookmarks.rb
katello-4.4.0.2 db/seeds.d/111-container-image-bookmarks.rb
katello-4.4.0.1 db/seeds.d/111-container-image-bookmarks.rb
katello-4.3.1 db/seeds.d/111-container-image-bookmarks.rb
katello-4.4.0 db/seeds.d/111-container-image-bookmarks.rb