Revision ceeb3926
Added by Dominic Cleal over 6 years ago
db/migrate/20130329195742_remove_duplicate_snippets.rb | ||
---|---|---|
|
||
def up
|
||
# Remove duplicates of http_proxy added by 20110420150600_add_solaris_templates
|
||
FakeConfigTemplate.destroy_all(:name => "HTTP proxy")
|
||
FakeConfigTemplate.where(:name => "HTTP proxy").destroy_all
|
||
|
||
# Remove duplicate added by 20120604114049_add_epel_snippets
|
||
epels = FakeConfigTemplate.where(:name => :epel).order("id ASC").to_a
|
Also available in: Unified diff
Fixes #20955 - Remove conditions to {destroy, delete}_all calls