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.14.1 db/seeds.d/111-container-image-bookmarks.rb
katello-4.14.0 db/seeds.d/111-container-image-bookmarks.rb
katello-4.14.0.rc3 db/seeds.d/111-container-image-bookmarks.rb
katello-4.14.0.rc2 db/seeds.d/111-container-image-bookmarks.rb
katello-4.14.0.rc1.1 db/seeds.d/111-container-image-bookmarks.rb
katello-4.14.0.rc1 db/seeds.d/111-container-image-bookmarks.rb
katello-4.13.1 db/seeds.d/111-container-image-bookmarks.rb
katello-4.13.0 db/seeds.d/111-container-image-bookmarks.rb
katello-4.12.1 db/seeds.d/111-container-image-bookmarks.rb
katello-4.13.0.rc1 db/seeds.d/111-container-image-bookmarks.rb
katello-4.12.0 db/seeds.d/111-container-image-bookmarks.rb
katello-4.12.0.rc3 db/seeds.d/111-container-image-bookmarks.rb
katello-4.12.0.rc2 db/seeds.d/111-container-image-bookmarks.rb
katello-4.12.0.rc1 db/seeds.d/111-container-image-bookmarks.rb
katello-4.11.1 db/seeds.d/111-container-image-bookmarks.rb
katello-4.11.0 db/seeds.d/111-container-image-bookmarks.rb
katello-4.11.0.rc2 db/seeds.d/111-container-image-bookmarks.rb
katello-4.11.0.rc1 db/seeds.d/111-container-image-bookmarks.rb
katello-4.10.0 db/seeds.d/111-container-image-bookmarks.rb
katello-4.9.2 db/seeds.d/111-container-image-bookmarks.rb