Revision cf998638
Added by Lukas Zapletal about 8 years ago
db/seeds.d/75-abrt-seeds.rb | ||
---|---|---|
# Create feature for Smart Proxy
|
||
Feature.find_or_create_by_name('Abrt')
|
||
f = Feature.where(:name => 'Abrt').first_or_create
|
||
raise "Unable to create Abrt proxy feature: #{format_errors f}" if f.nil? || f.errors.any?
|
Also available in: Unified diff
Rails 4.2 compatibility changes