Sha256: 34ab6f210c73e28e7336e14ab6d2a07f81eb7c890aa91dfc2624b0c2474a6f6d
Contents?: true
Size: 472 Bytes
Versions: 5
Compression:
Stored size: 472 Bytes
Contents
class AddOkHostsBookMark < ActiveRecord::Migration class Bookmark < ActiveRecord::Base; end def self.up Bookmark.find_or_create_by_name_and_query_and_controller :name => "ok hosts", :query => 'last_report > "35 minutes ago" and status.enabled = true and status.applied = 0 and status.failed = 0 and status.pending = 0', :controller=> "hosts", :public => true rescue # don't fail because we can't create a bookmark true end def self.down end end
Version data entries
5 entries across 5 versions & 1 rubygems