Sha256: 74ae4a23adc69b242e30e73aa19f378d1cd07ca8bb9a11844abfdbc0df1f0903

Contents?: true

Size: 598 Bytes

Versions: 91

Compression:

Stored size: 598 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 !!!
#

# Create a new location to be used as the Katello Default.
if ENV['SEED_LOCATION'].blank?
  default_location = Location.first
else
  default_location = Location.where(:name => ENV['SEED_LOCATION']).first_or_create
end
if Setting[:default_location_subscribed_hosts].empty?
  Setting[:default_location_subscribed_hosts] = default_location.title
end

Version data entries

91 entries across 91 versions & 1 rubygems

Version Path
katello-4.14.3 db/seeds.d/101-locations.rb
katello-4.14.2 db/seeds.d/101-locations.rb
katello-4.15.0 db/seeds.d/101-locations.rb
katello-4.15.0.rc2 db/seeds.d/101-locations.rb
katello-4.15.0.rc1 db/seeds.d/101-locations.rb
katello-4.14.1 db/seeds.d/101-locations.rb
katello-4.14.0 db/seeds.d/101-locations.rb
katello-4.14.0.rc3 db/seeds.d/101-locations.rb
katello-4.14.0.rc2 db/seeds.d/101-locations.rb
katello-4.14.0.rc1.1 db/seeds.d/101-locations.rb
katello-4.14.0.rc1 db/seeds.d/101-locations.rb
katello-4.13.1 db/seeds.d/101-locations.rb
katello-4.13.0 db/seeds.d/101-locations.rb
katello-4.12.1 db/seeds.d/101-locations.rb
katello-4.13.0.rc1 db/seeds.d/101-locations.rb
katello-4.12.0 db/seeds.d/101-locations.rb
katello-4.12.0.rc3 db/seeds.d/101-locations.rb
katello-4.12.0.rc2 db/seeds.d/101-locations.rb
katello-4.12.0.rc1 db/seeds.d/101-locations.rb
katello-4.11.1 db/seeds.d/101-locations.rb