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